﻿/* misiones.css
 * Styles for the matched play missions selector screen and modal PDF viewer.
 */
:root {
  --cream: #efe5cf;
  --cream-2: #f7efda;
  --ink: #221b14;
  --ink-soft: #574635;
  --gold: #cfa15b;
  --gold-2: #ead39a;
  --gold-line: #b79045;
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.18);
  --tile: 120px;
  --btnW: 54px;
  --btnH: 54px;
  --gap: 6px;
  --radius: 14px;
  --radius-pill: 9999px;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #3b2b20;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.stage {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b2b20;
  padding: 0;
}

.phone {
  aspect-ratio: 9 / 16;
  width: min(96vw, 480px);
  max-height: min(98vh, 940px);
  border-radius: 22px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  background: #3b2b20;
  border: none;
  position: relative;
}

.screen {
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: url('../images/Choma.png') center/cover no-repeat;
}
}

.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.2) 100%);
  z-index: 0;
}

.screen > * {
  position: relative;
  z-index: 1;
}

.screen > * {
  position: relative;
  z-index: 1;
}

.banner {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.brand {
  font-family: Georgia, serif;
  font-weight: 900;
  color: var(--cream);
  font-size: 16px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag-btn {
  width: 26px;
  height: 18px;
  border: none;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .flag-btn:hover {
    filter: brightness(1.03);
  }
}

.controls {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-gold,
.btn-secondary {
  appearance: none;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  padding: 6px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.btn-secondary {
  background: linear-gradient(180deg, #f0e7cf, #e2d7bb);
}

.btn-sm {
  padding: 5px 10px;
}

.btn-gold:active,
.btn-secondary:active,
.btn-footer:active,
.btn-circle:active {
  transform: translateY(1px) scale(0.99);
}

@media (hover: hover) {
  .btn-gold:hover,
  .btn-secondary:hover,
  .btn-footer:hover {
    filter: brightness(1.05);
  }
}

.rounds-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
}

.rounds-label {
  color: #f4e9d2;
  font-weight: 900;
  margin: 0 4px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-circle {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.rounds-input {
  appearance: none;
  -moz-appearance: textfield;
  width: 40px;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  font-weight: 800;
  text-align: center;
}

.rounds-input::-webkit-outer-spin-button,
.rounds-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.content {
  flex: 1;
  overflow: hidden;
}

.pools {
  height: 100%;
  padding: var(--gap) 4px;
}

.pools-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, var(--tile));
  grid-template-rows: repeat(3, var(--tile));
  gap: var(--gap);
  justify-content: center;
}

.pool-card {
  width: var(--tile);
  height: var(--tile);
  background: linear-gradient(180deg, rgba(239, 229, 207, 0.25), rgba(247, 239, 218, 0.25));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.missions {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  align-items: stretch;
  justify-items: stretch;
}

.missions > li {
  min-width: 0;
  min-height: 0;
  position: relative;
}

.item {
  width: var(--btnW);
  height: var(--btnH);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff8e9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.item .label {
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
  max-width: 100%;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item.selected {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 0 1px var(--gold-line) inset, 0 8px 18px rgba(0, 0, 0, 0.18);
}

.item.selected .label {
  color: #1c1a16;
}

.badge {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(12, 11, 9, 0.85);
  border: 1px solid rgba(234, 211, 154, 0.6);
  color: #f2e6c6;
  font-size: 10px;
  font-weight: 800;
}

.footer {
  padding: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-footer {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(234, 211, 154, 0.5);
  background: rgba(12, 11, 9, 0.65);
  color: #f4e9d2;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-card {
  width: min(96vw, 980px);
  height: min(90vh, 900px);
  background: #111;
  border: 1px solid #3d3d3d;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border: 1px solid var(--gold-line);
  font-weight: 800;
  cursor: pointer;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #222;
}




/* 2vs2 layout */
.stage-2v2 .content-2v2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 24px;
}
.stage-2v2 .grid-2v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  grid-template-rows: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  justify-content: center;
  justify-items: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.stage-2v2 .mission-chip-2v2 {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  position: relative;
}
.stage-2v2 .mission-chip-2v2:hover,
.stage-2v2 .mission-chip-2v2:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}
.stage-2v2 .mission-chip-2v2.selected {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.stage-2v2 .mission-chip-2v2 .badge {
  top: 10px;
  right: 10px;
}
.stage-2v2 .mission-chip-2v2__label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}





.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.2) 100%);
}






