/* Stakes mini-app styles */

.stakes-app {
  background-color: #333232;
}

.stakes-container {
  padding-bottom: 24px;
}

.stakes-loading {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.stakes-loading i {
  font-size: 32px;
  color: #7cf0c4;
  margin-bottom: 16px;
}

.stakes-screen {
  display: none;
  animation: stakesFadeIn 0.25s ease;
}

.stakes-screen--active {
  display: block;
}

@keyframes stakesFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stakes-hero {
  text-align: center;
  margin-bottom: 24px;
}

.stakes-hero h1 {
  font-size: 22px;
  margin-bottom: 12px;
}

.stakes-hero p {
  color: #ccc;
  font-size: 15px;
  line-height: 1.6;
}

.stakes-kicker {
  color: #7cf0c4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stakes-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #7cf0c4;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.stakes-btn:hover:not(:disabled) {
  background: #5fe0ad;
  transform: translateY(-1px);
}

.stakes-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stakes-btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.stakes-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.stakes-category-card {
  background: #000;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.stakes-category-card:hover:not(.stakes-category-card--locked) {
  border-color: #7cf0c4;
  box-shadow: 0 2px 12px rgba(124, 240, 196, 0.2);
}

.stakes-category-card--locked {
  opacity: 0.7;
  cursor: default;
}

.stakes-category-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.stakes-category-card p {
  margin: 0;
  color: #aaa;
  font-size: 13px;
}

.stakes-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(124, 240, 196, 0.15);
  color: #7cf0c4;
}

.stakes-category-multiplier {
  color: #7cf0c4;
  font-size: 12px;
  margin-top: 8px;
}

.stakes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stakes-back {
  background: none;
  border: 1px solid #555;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.stakes-header h2 {
  margin: 0;
  font-size: 18px;
  flex: 1;
}

.stakes-budget {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.stakes-budget strong {
  color: #7cf0c4;
}

.stakes-budget--over {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.stakes-question {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.stakes-question--bet {
  border-color: #7cf0c4;
}

.stakes-question-num {
  color: #7cf0c4;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stakes-question-text {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.stakes-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.stakes-answer-btn {
  padding: 10px 12px;
  background: #000;
  border: 1px solid #555;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: all 0.12s ease;
}

.stakes-answer-btn--selected {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.stakes-text-input {
  width: 100%;
  padding: 10px 12px;
  background: #000;
  border: 1px solid #555;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.stakes-text-input:focus {
  outline: none;
  border-color: #7cf0c4;
}

.stakes-coins {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stakes-coins-label {
  font-size: 12px;
  color: #aaa;
  margin-right: 4px;
}

.stakes-coin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.stakes-coin--bronze {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
}

.stakes-coin--silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
  color: #000;
}

.stakes-coin--gold {
  background: linear-gradient(135deg, #ffd700, #daa520);
  color: #000;
}

.stakes-coin--selected {
  border-color: #7cf0c4;
  box-shadow: 0 0 0 2px rgba(124, 240, 196, 0.4);
  transform: scale(1.08);
}

.stakes-cancel-bet {
  margin-left: auto;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.stakes-cancel-bet:hover {
  background: rgba(255, 107, 107, 0.15);
}

.stakes-submit-bar {
  position: sticky;
  bottom: 0;
  background: #000;
  padding: 16px 0 8px;
  margin-top: 16px;
  border-top: 1px solid #333;
}

.stakes-error {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.stakes-success {
  background: rgba(124, 240, 196, 0.15);
  border: 1px solid #7cf0c4;
  color: #7cf0c4;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.stakes-results-summary {
  background: linear-gradient(135deg, #1a3a2a, #0d1f17);
  border: 1px solid #7cf0c4;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.stakes-results-summary .big-number {
  font-size: 36px;
  font-weight: 700;
  color: #7cf0c4;
}

.stakes-results-summary .label {
  color: #aaa;
  font-size: 13px;
}

.stakes-result-item {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.stakes-result-item--correct {
  border-color: #7cf0c4;
}

.stakes-result-item--wrong {
  border-color: #ff6b6b;
}

.stakes-result-status {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stakes-result-status--correct { color: #7cf0c4; }
.stakes-result-status--wrong { color: #ff6b6b; }

.stakes-result-meta {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.stakes-result-winnings {
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}

.stakes-result-winnings--win { color: #7cf0c4; }
.stakes-result-winnings--loss { color: #ff6b6b; }

.stakes-section-title {
  font-size: 14px;
  color: #7cf0c4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 10px;
}

.stakes-waiting {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}

.stakes-waiting i {
  font-size: 40px;
  color: #7cf0c4;
  margin-bottom: 16px;
}
