:root {
  --navy: #14213d;
  --ink: #251f21;
  --teal: #2a9d8f;
  --gold: #f4a61d;
  --coral: #ef476f;
  --sky: #e8f4f8;
  --paper: #fffdf8;
  --hairline: #eae9ea;
  --ar-font:
    "Noto Kufi Arabic",
    "Segoe UI",
    Tahoma,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background:
    linear-gradient(
      160deg,
      #bfe3ec 0%,
      #e8f4f8 45%,
      #fdf3d8 100%);
  min-height: 100vh;
  color: var(--ink);
  font-family:
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 32px;
}
.ar {
  font-family: var(--ar-font);
}
.topbar {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(20, 33, 61, .25);
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.brand {
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .75;
  font-weight: 600;
}
.title {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.15;
}
.title-accent {
  color: var(--gold);
}
.subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: .9;
}
.iconbtn {
  background: rgba(255, 255, 255, .14);
  border: 0;
  border-radius: 10px;
  font-size: 18px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.hud {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.hud-item {
  font-size: 13px;
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
}
.hud-progress {
  flex: 1;
  min-width: 80px;
}
.hud progress {
  width: 100%;
  height: 10px;
  accent-color: var(--gold);
}
.hud-count {
  font-size: 12px;
  opacity: .85;
}
.card {
  background: var(--paper);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(20, 33, 61, .12);
  margin-bottom: 12px;
}
.start {
  text-align: center;
}
.start-hero {
  font-size: 34px;
  letter-spacing: 6px;
  margin: 8px 0 4px;
}
.lead {
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.rules {
  text-align: right;
  font-size: 13.5px;
  line-height: 1.8;
  background: var(--sky);
  border-radius: 12px;
  padding: 10px 26px 10px 12px;
}
.bigbtn {
  display: block;
  width: 100%;
  margin: 14px 0 4px;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--ar-font);
  min-height: 48px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}
.bigbtn:active {
  transform: translateY(2px);
  box-shadow: none;
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 14px;
  margin-top: 12px;
  cursor: pointer;
  font-family: var(--ar-font);
  padding: 10px;
  min-height: 44px;
}
.map-hint {
  text-align: center;
  font-size: 15px;
  margin: 6px 0 10px;
  font-weight: 600;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 620px) {
  .map-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.venue-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 8px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 120px;
  box-shadow: 0 2px 8px rgba(20, 33, 61, .08);
}
.venue-card:active {
  transform: scale(.98);
}
.venue-card.done {
  border-color: var(--teal);
  background: #eef8f5;
}
.venue-card.theatre {
  border-color: var(--gold);
  background: #fff8ea;
}
.venue-card.desk {
  border-style: dashed;
}
.venue-icon {
  font-size: 34px;
}
.venue-en {
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
}
.venue-ar {
  font-size: 12.5px;
  color: #585254;
  text-align: center;
}
.venue-price {
  font-size: 12px;
  color: var(--navy);
  background: var(--sky);
  border-radius: 8px;
  padding: 2px 8px;
  margin-top: 4px;
}
.stamp-mark {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.desk-badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  padding: 0 6px;
}
.finale-cta {
  margin-top: 14px;
}
.venue-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.venue-big-icon {
  font-size: 44px;
}
.venue-title {
  margin: 0;
  font-size: 21px;
  color: var(--navy);
}
.step-tag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  margin: 8px 0;
  font-weight: 600;
}
.step-note {
  font-size: 13.5px;
  color: #585254;
  margin: 4px 0 10px;
}
.seller {
  font-size: 15px;
  background: var(--sky);
  border-radius: 12px;
  padding: 10px 12px;
}
.matchset {
  position: relative;
  margin: 8px 0 14px;
}
.ms-label {
  margin: 4px 0 8px;
  font-size: 15px;
  color: var(--navy);
}
.ms-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.ms-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ms-enrow {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.wbtn {
  flex: 1;
  padding: 11px 8px;
  border-radius: 10px;
  border: 2px solid var(--hairline);
  background: #fff;
  font-size: 14.5px;
  cursor: pointer;
  min-height: 46px;
  line-height: 1.25;
}
.wbtn.en {
  font-weight: 600;
}
.wbtn.en.sel {
  border-color: var(--gold);
  background: #fff6df;
}
.wbtn.done {
  border-color: var(--teal);
  background: #eef8f5;
  color: #1d7268;
}
.wbtn.bad {
  border-color: var(--coral);
  background: #fdeef1;
}
.wbtn.ar {
  font-family: var(--ar-font);
  width: 100%;
}
.speakbtn {
  border: 0;
  background: var(--sky);
  border-radius: 10px;
  font-size: 15px;
  min-width: 44px;
  cursor: pointer;
}
.ms-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.ms-lines path {
  stroke: var(--teal);
  stroke-width: 3;
  fill: none;
  opacity: .8;
}
.setdone {
  color: #1d7268;
  font-weight: 700;
  margin-top: 8px;
  font-family: var(--ar-font);
}
.qcard {
  background: #fff;
  border: 2px solid var(--hairline);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
}
.qq {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt {
  border: 2px solid var(--hairline);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  min-height: 44px;
}
.opt.ok {
  border-color: var(--teal);
  background: #eef8f5;
  color: #1d7268;
  font-weight: 700;
}
.opt.no {
  border-color: var(--coral);
  background: #fdeef1;
}
.why {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #1d7268;
  background: #eef8f5;
  border-radius: 8px;
  padding: 8px 10px;
}
.donecard {
  border: 2px solid #bfe0d8;
  background: #f2faf7;
  color: #1d7268;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 14px;
}
.done-tick {
  font-weight: 800;
  margin-inline-end: 6px;
}
.stamp-stage {
  text-align: center;
  padding: 18px 0 8px;
}
.stamp-big {
  font-size: 56px;
  animation: stampIn .45s ease-out;
}
@keyframes stampIn {
  0% {
    transform: scale(2.4) rotate(-18deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.finale {
  text-align: center;
}
.finale-hero {
  font-size: 42px;
}
.writing {
  text-align: start;
  margin-top: 10px;
}
.writebox {
  width: 100%;
  border: 2px solid var(--hairline);
  border-radius: 12px;
  font-size: 15px;
  padding: 10px;
  font-family: inherit;
  margin: 6px 0;
}
.example summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  padding: 8px 0;
}
.example p {
  font-size: 14px;
  line-height: 1.6;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  opacity: 0;
  transition: all .25s ease;
  z-index: 50;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.foot {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: #585254;
}
.credit {
  font-size: 12px;
  letter-spacing: .02em;
}
