/* Invoer, detail, delen, instellingen, cijfers (La Lista) en de prijzenkast. */

/* --- Invoer --- */
.invoer__veld { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 0.35rem; }
.invoer__tegen { align-self: center; font-family: var(--letter-bord); font-size: 1.4rem; color: var(--messing); }
.invoer__speler { min-width: 0; display: grid; justify-items: center; gap: 0.7rem; padding: 0.9rem 0.5rem; border-radius: var(--ronding); background: var(--glas); border: 1px solid var(--rand); position: relative; overflow: hidden; }
.invoer__speler::before { content: ''; position: absolute; inset: 0 0 auto; height: 0.25rem; background: var(--rosso); box-shadow: 0 0 1rem var(--rosso-gloed); }
.invoer__speler--2::before { background: var(--pistacchio); box-shadow: 0 0 1rem var(--pistacchio-gloed); }
.invoer__naam { font-weight: 750; font-size: 1.05rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoer__team { display: grid; justify-items: center; gap: 0.35rem; width: 100%; padding: 0.6rem 0.3rem; border-radius: 0.9rem; background: rgba(0, 0, 0, 0.25); border: 1px dashed var(--rand-sterk); font-size: 0.85rem; font-weight: 600; }
.invoer__team .wapen { width: 2.8rem; height: 2.9rem; }
.invoer__team span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teller { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 0.2rem; }
.teller__knop { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--glas-sterk); border: 1px solid var(--rand); transition: transform 0.25s var(--veer); }
.teller__knop:active { transform: scale(0.85); }
.teller__knop:disabled { opacity: 0.3; }
.teller__getal {
  width: 3rem;
  height: 4.2rem;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #342e29 0 50%, var(--klep-onder) 50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  font-family: var(--letter-bord);
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 4.2rem;
}
.teller__getal.is-gestuiterd { animation: tel 0.35s var(--veer); }
@keyframes tel { from { transform: rotateX(70deg) scale(0.9); } }
.invoer__wanneer { margin: 0.6rem 0 0.8rem; display: grid; justify-items: center; }
.invoer__wanneer .veld { width: 100%; }

.kies__kop { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.kies__kop .blad__titel { margin: 0; }
.zoek { position: relative; display: block; margin: 0.9rem 0 0.4rem; }
.zoek .picto { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--room-stil); }
.zoek input { padding-left: 2.8rem; }
.kies__kopje { margin: 1rem 0 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--room-stil); letter-spacing: 0.05em; }
.kies__snel, .kies__lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.8rem, 1fr)); gap: 0.4rem; }
.teamknop { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.6rem; border-radius: 0.85rem; background: var(--glas); border: 1px solid var(--rand); font-size: 0.86rem; font-weight: 600; text-align: left; transition: transform 0.25s var(--veer); }
.teamknop:active { transform: scale(0.95); background: var(--glas-sterk); }
.teamknop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Detail van een potje --- */
.detail { text-align: center; }
.detail__wanneer { margin: 0 0 1rem; color: var(--room-zacht); font-size: 0.9rem; }
.detail__wedstrijd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; }
.detail__kant { display: grid; justify-items: center; gap: 0.25rem; font-size: 0.9rem; }
.detail__wapen .wapen { width: 3.6rem; height: 3.7rem; }
.detail__speler { font-size: 0.78rem; font-weight: 700; }
.detail__speler--1 { color: var(--rosso); }
.detail__speler--2 { color: var(--pistacchio); }
.detail__score { font-family: var(--letter-bord); font-weight: 600; font-size: 3.4rem; line-height: 1; }
.detail__score i { font-style: normal; color: var(--room-stil); margin: 0 0.2rem; }
.detail__uitslag { margin: 1rem 0 0.2rem; font-weight: 700; }
.detail__uitslag--1 { color: var(--rosso); }
.detail__uitslag--2 { color: var(--pistacchio); }
.detail__door { margin: 0 0 1.2rem; font-size: 0.85rem; color: var(--room-stil); }

/* --- Delen, plakken, instellingen --- */
.delen { text-align: center; }
.delen__bal { width: 4.5rem; height: 4.5rem; margin-bottom: 0.4rem; }
.delen p { color: var(--room-zacht); }
.delen__link { padding: 0.7rem; border-radius: 0.8rem; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--rand-sterk); font-size: 0.78rem; word-break: break-all; }
.plak { display: grid; gap: 0.9rem; }
.plak p { margin: -0.5rem 0 0; color: var(--room-zacht); }
.instellingen { display: grid; gap: 0.7rem; }
.instelling { display: grid; gap: 0.45rem; padding: 0.8rem; border-radius: var(--ronding); background: var(--glas); border: 1px solid var(--rand); }
.instelling > span { font-size: 0.82rem; font-weight: 600; color: var(--room-zacht); }
.instelling--namen { grid-template-columns: 1fr 1fr; }
.instelling--namen > span, .instelling--namen .knop { grid-column: 1 / -1; }
.instelling input { min-height: 2.7rem; font-size: 0.95rem; }
.schakel { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 0.25rem; border-radius: 0.9rem; background: rgba(0, 0, 0, 0.3); }
.schakel button { min-height: 2.5rem; border-radius: 0.7rem; font-weight: 600; color: var(--room-zacht); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 0.5rem; transition: background 0.25s; }
.schakel button.is-aan { background: var(--messing-verloop); color: #3b2508; }
.instellingen .tekstknop { justify-content: center; }

/* --- Cijfers --- */
.onderling { margin-bottom: 1.4rem; }
.onderling__namen, .onderling__getallen { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.onderling__balk { display: flex; height: 1.1rem; margin: 0.5rem 0; border-radius: 1rem; overflow: hidden; background: #2a221d; gap: 2px; }
.onderling__balk i { flex-grow: 0; flex-shrink: 0; transform-origin: left; animation: groei 0.9s var(--glij) 0.2s both; }
.onderling__balk .balk--1 { background: linear-gradient(180deg, #ff8a6e, var(--rosso)); }
.onderling__balk .balk--0 { background: #6b5e52; }
.onderling__balk .balk--2 { background: linear-gradient(180deg, #d4f59b, var(--pistacchio)); }
@keyframes groei { from { transform: scaleX(0); } }
.onderling__getallen b { font-family: var(--letter-bord); font-size: 2.4rem; line-height: 1; }
.onderling__getallen b:first-child { color: var(--rosso); }
.onderling__getallen b:last-child { color: var(--pistacchio); }
.onderling__getallen span { color: var(--room-stil); font-size: 0.85rem; }

/* La Lista: een menukaart op papier, met stippellijntjes zoals bij de prijzen */
.lista {
  position: relative;
  padding: 1.5rem 1.2rem 1.2rem;
  border-radius: 0.6rem;
  color: #2b1d12;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #fbf3e4, #efe0c6);
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.55), inset 0 0 0 0.45rem #fbf3e4, inset 0 0 0 0.55rem #b8862f;
  transform: rotate(-0.6deg);
}
.lista .kleur-1 { color: #d23d1f; }
.lista .kleur-2 { color: #4f8a14; }
.lista__kop { text-align: center; margin-bottom: 0.9rem; }
.lista__bar { font-size: 0.68rem; letter-spacing: 0.35em; text-transform: uppercase; color: #9a6b23; }
.lista__kop h2 { margin: 0.1rem 0; font-family: var(--letter-bord); font-weight: 600; font-size: 2.3rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; }
.lista__onder { font-size: 0.8rem; font-style: italic; color: #7a6248; }
.lista__namen, .lista__regel { display: grid; grid-template-columns: 1fr 4.7rem 4.7rem; align-items: baseline; gap: 0.3rem; }
.lista__namen { font-weight: 800; font-size: 0.85rem; text-align: right; padding-bottom: 0.3rem; border-bottom: 2px solid #2b1d12; }
.lista__namen span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista__regel { padding: 0.55rem 0; border-bottom: 1px dotted rgba(43, 29, 18, 0.35); text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lista__regel span:not(.lista__wat) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista__wat { text-align: left; font-weight: 500; }
.lista__regel--klein { grid-template-columns: 1fr; text-align: left; gap: 0.1rem; }
.lista__regel--klein span:nth-child(2)::before { content: '●  '; color: #d23d1f; }
.lista__regel--klein span:nth-child(3)::before { content: '●  '; color: #4f8a14; }
.lista__regel--klein span:not(.lista__wat) { font-size: 0.92rem; }
.lista__regel small { font-weight: 500; color: #7a6248; }
.lista__voet { margin: 1rem 0 0; text-align: center; font-style: italic; font-size: 0.9rem; color: #5b4632; }

/* --- Prijzenkast --- */
.kast__telling { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 1rem; }
.kast__groot { width: 6.5rem; height: 7.8rem; filter: drop-shadow(0 1rem 1.6rem rgba(224, 178, 90, 0.3)); }
.kast__wie { display: grid; justify-items: center; font-weight: 700; }
.kast__wie b { font-family: var(--letter-bord); font-size: 3rem; line-height: 1; }
.kast__wie span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kast__nu { margin-bottom: 1.2rem; padding: 0.9rem 1rem; border-radius: var(--ronding); background: var(--glas); border: 1px solid var(--rand); text-align: center; }
.kast__label { margin: 0; font-size: 0.8rem; color: var(--room-stil); }
.kast__stand { margin: 0.2rem 0 0; font-family: var(--letter-bord); font-size: 1.5rem; }
.kast__stand--stil { font-family: var(--letter-tekst); font-size: 1rem; color: var(--room-zacht); }
.kast { padding: 0 0.6rem; border-radius: 1rem; background: linear-gradient(180deg, #2a1d14, #1a120d); box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.7); }
.plank { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1.2rem 0 0.6rem; border-bottom: 0.7rem solid transparent; border-image: linear-gradient(180deg, #8a5b2f, #4a2e17) 1; box-shadow: 0 0.6rem 0.8rem -0.4rem rgba(0, 0, 0, 0.8); }
.kast__vak { display: grid; justify-items: center; text-align: center; animation: binnen 0.6s var(--veer) both; }
.kast__vak .coppa { width: 4.2rem; height: 5rem; filter: drop-shadow(0 0.4rem 0.5rem rgba(0, 0, 0, 0.6)); }
.kast__vak .coppa__stoom { display: none; }
.kast__vak.is-gedeeld .coppa { filter: grayscale(0.7) brightness(0.8); }
.kast__maand { font-size: 0.72rem; font-weight: 700; }
.kast__winnaar { font-size: 0.68rem; color: var(--room-stil); }

