/* GeoTrek — cyan/sea theme accent (#2ec4b6) */

.mode-button.geotrek-mode {
  background: #292826;
  border: 2px solid #2ec4b6;
  color: #e6fffb;
}

.worldplay-round {
  display: none;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  flex-direction: column;
  background: #222222;
  z-index: 2000 !important;
  overflow: hidden !important;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.worldplay-round.visible {
  display: flex;
}

.worldplay-round .status-bar {
  flex-shrink: 0;
}

.worldplay-scroll {
  flex: 1;
  overflow: auto;
  background: #222222;
  -webkit-overflow-scrolling: touch;
}

.cf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 14px;
  padding: 14px;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cf-card {
  background: #292826;
  color: #e8e4dc;
  border: 1px solid #3f3b36;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.cf-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: #e6fffb;
  margin-bottom: 10px;
}

.cf-status strong {
  font-weight: 750;
  color: #f5f0e6;
}

.cf-plane-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2ec4b6;
}

.cf-search-row {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 8;
}

.cf-search {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #5a544a;
  padding: 0 12px;
  font-size: 1.15rem;
  color: #f5f0e6;
  background: #1b1a18;
  text-transform: uppercase;
}

.cf-search::placeholder {
  color: #8a8276;
}

.cf-search:focus {
  outline: none;
  border-color: #2ec4b6;
}

.cf-fly,
.cf-help {
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.cf-fly {
  background: #292826;
  border: 2px solid #2ec4b6;
  color: #e6fffb;
  padding: 0 18px;
  min-width: 72px;
  font-size: 1.1rem;
}

.cf-fly:hover:not(:disabled) {
  background: #322f2c;
}

.cf-fly:disabled {
  opacity: 0.45;
  cursor: default;
}

.cf-help {
  width: 44px;
  background: #2a2824;
  border: 1px solid #6a6358;
  color: #e8e4dc;
  font-size: 1.15rem;
}

.cf-suggest {
  position: absolute;
  left: 0;
  right: 124px;
  top: 48px;
  background: #1b1a18;
  border: 1px solid #3f3b36;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 9;
  overflow: hidden;
}

.worldplay-round .cf-suggest button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: #1b1a18;
  text-align: left;
  cursor: pointer;
  font-size: 1.1rem;
  color: #e8e4dc;
  font-weight: 500;
  border-radius: 0;
}

.worldplay-round .cf-suggest button.is-on,
.worldplay-round .cf-suggest button:hover {
  background: #322f2c;
}

.cf-suggest .cf-letters {
  color: #9a9286;
  white-space: nowrap;
}

.cf-suggest .cf-empty {
  padding: 10px 12px;
  color: #9a9286;
}

.cf-clue {
  margin-top: 10px;
  background: #1b1a18;
  color: #cfc7b8;
  border: 1px solid #3f3b36;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1.15rem;
  min-height: 20px;
}

.cf-clue.is-fresh {
  background: #1e3a38;
  color: #e6fffb;
  border-color: #2ec4b6;
  animation: cf-clue-settle 1.6s ease forwards;
}

@keyframes cf-clue-settle {
  0% { background: #1e3a38; border-color: #2ec4b6; }
  70% { background: #1e3a38; border-color: #2ec4b6; }
  100% { background: #1b1a18; border-color: #3f3b36; }
}

.cf-start {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 16px 24px;
  text-align: center;
  color: #e8e4dc;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cf-start[hidden],
.cf-start.is-hidden {
  display: none !important;
}

.cf-start h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: #f5f0e6;
}

.cf-streak {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2ec4b6;
}

.cf-selected-title {
  margin: 0;
  max-width: 360px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e6fffb;
  line-height: 1.3;
}

.cf-start-status {
  max-width: 420px;
  font-size: 0.95rem;
  color: #cfc7b8;
}

.cf-start-status.is-error {
  color: #e07a2f;
}

.cf-start .cf-text-btn {
  margin-top: 4px;
  background: transparent;
  border: none;
  color: #2ec4b6;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
  padding: 8px;
}

.cf-help-sub {
  margin: -4px 0 10px;
  color: #9a9286;
  font-size: 1.05rem;
}

.cf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
}

.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a544a;
}

.cf-dot.is-on {
  background: #2ec4b6;
}

.cf-start .acrostic-calendar {
  width: min(360px, 100%);
  margin: 4px auto 0;
}

.cf-map-wrap {
  margin-top: 12px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #c9ebfc;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  max-height: min(52vh, 420px);
  border: 4px solid #2ec4b6;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.cf-map-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  background: transparent;
}

.cf-city-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.cf-city-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  pointer-events: none;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #141414;
  white-space: nowrap;
  text-shadow: none;
  -webkit-text-stroke: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.cf-city-label.is-past {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2c2c2c;
}

.cf-city-label.is-here {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0e0e0e;
}

/* Soft aura only — fixed screen size, no sharp rings, no white band. */
.cf-here-pulse {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(224, 122, 47, 0.55) 0%,
    rgba(224, 122, 47, 0.22) 40%,
    rgba(224, 122, 47, 0) 70%
  );
  box-shadow: none;
  animation: cf-soft-breath 2.8s ease-in-out infinite;
}

.cf-here-pulse[hidden] {
  display: none !important;
}

@keyframes cf-soft-breath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0.22;
  }
}

.cf-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Beat global `button { padding: 12px 18px }` from styles.css */
.worldplay-round .cf-zoom button,
.worldplay-round .cf-map-wrap .cf-zoom > button {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  background: #fff !important;
  color: #222 !important;
  cursor: pointer;
  display: block !important;
  line-height: 0 !important;
  font-size: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.worldplay-round .cf-zoom button svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
}

.cf-zoom button:disabled {
  opacity: 0.4;
  cursor: default;
}

.cf-map-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(41, 40, 38, 0.9);
  border: 1px solid #3f3b36;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: #cfc7b8;
}

.cf-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cf-panel h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #9a9286;
  font-weight: 700;
}

.cf-badge {
  display: inline-block;
  background: #1b1a18;
  color: #e6fffb;
  border: 1px solid #5a544a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.cf-leg {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #3f3b36;
  font-size: 1.1rem;
  color: #e8e4dc;
}

.cf-leg.start {
  border-top: none;
  color: #9a9286;
}

.cf-km {
  color: #9a9286;
  white-space: nowrap;
}

.cf-know-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #3f3b36;
  font-size: 1.1rem;
}

.cf-know-row:first-of-type {
  border-top: none;
}

.cf-k {
  color: #9a9286;
}

.cf-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.cf-tile {
  width: 26px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #5a544a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: #1b1a18;
  color: #e8e4dc;
}

.cf-tile.filled {
  background: #2ec4b6;
  color: #1b1a18;
  border-color: #2ec4b6;
}

.cf-gap {
  width: 8px;
}

.cf-dir-label {
  margin: 12px 0 4px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #9a9286;
  font-weight: 700;
}

.cf-modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 42, 0.95);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cf-dialog {
  background: #222222;
  border: 2px solid #2ec4b6;
  border-radius: 10px;
  max-width: 460px;
  width: 100%;
  padding: 18px;
  box-sizing: border-box;
  max-height: min(86vh, 720px);
  overflow: auto;
  color: #e8e4dc;
}

.cf-dialog h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #e6fffb;
}

.cf-dialog p {
  margin: 0 0 10px;
  color: #cfc7b8;
  line-height: 1.45;
  font-size: 1.1rem;
}

.cf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.worldplay-round .cf-actions button,
.worldplay-round .cf-text-btn,
.worldplay-round .cf-nudge-list button,
.worldplay-round .cf-archive button {
  border-radius: 8px;
  border: 2px solid #5a544a;
  background: #292826;
  color: #e6fffb;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
}

.worldplay-round .cf-actions button.primary {
  background: #292826;
  border-color: #2ec4b6;
  color: #e6fffb;
}

.cf-win-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 12px;
}

.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cf-chips span,
.cf-nudge-list button {
  background: #1b1a18;
  border: 1px solid #3f3b36;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 1.05rem;
  color: #e8e4dc;
}

.cf-nudge-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.cf-nudge-list button {
  border: 1px solid #3f3b36;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.cf-nudge-countries,
.cf-nudge-cities {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cf-nudge-countries button,
.cf-nudge-cities button {
  border: 2px solid #2ec4b6;
  background: #292826;
  color: #e6fffb;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 14px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}

.cf-nudge-countries button:hover,
.cf-nudge-cities button:hover {
  background: #1e3a38;
}

.cf-nudge-country {
  margin-left: 6px;
  color: #9adfd8;
  font-weight: 600;
}

.cf-archive {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.cf-archive button {
  text-align: left;
  border: 1px solid #3f3b36;
  background: #1b1a18;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .cf-layout {
    grid-template-columns: 1fr;
  }
  .cf-map-wrap {
    max-height: min(42vh, 300px);
  }
  .cf-suggest {
    right: 0;
  }
}

/* Shared Acrostic calendar/start controls → GeoTrek cyan theme */
.worldplay-round .acrostic-start-button {
  border-color: #2ec4b6;
  color: #e6fffb;
}

.worldplay-round .acrostic-start-button:hover {
  background: #1e3a38;
}

.worldplay-round .acrostic-cal-day.has-puzzle {
  background: #1e3a38;
  border-color: #2a6a64;
  color: #e6fffb;
}

.worldplay-round .acrostic-cal-day.has-puzzle:hover {
  background: #254845;
  border-color: #2ec4b6;
}

.worldplay-round .acrostic-cal-day.is-today:not(.unavailable) {
  box-shadow: inset 0 0 0 1px rgba(46, 196, 182, 0.55);
}

.worldplay-round .acrostic-cal-day.selected.has-puzzle,
.worldplay-round .acrostic-cal-day.selected:not(.unavailable):not(.locked-puzzle) {
  background: #2ec4b6;
  border-color: #2ec4b6;
  color: #102422;
}

.worldplay-round .acrostic-cal-day.completed-today .acrostic-cal-star,
.worldplay-round .cf-streak {
  color: #2ec4b6;
}
