/* Basarilar (Poker'in css/styles.css'inden). Poker'in degisken adlari icin takma adlar: */
:root { --card-border: #24503b; --text-dim: #a9b8ac; --danger: #e35d5d; --safe-top: env(safe-area-inset-top, 0px); }
.feat-list { display: block; }
button.has-claim { position: relative; animation: claim-blink 1.2s ease-in-out infinite; }
@keyframes claim-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 179, 65, .0); } 50% { box-shadow: 0 0 0 4px rgba(227, 179, 65, .65); } }
.claim-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e0322b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* ---------- Achievements (js/achievements.js, 2026-10-06) ---------- */
.feat-toast {
  position: fixed;
  left: 50%;
  top: calc(10px + var(--safe-top, 0px));
  transform: translate(-50%, -140%);
  z-index: 1200;
  max-width: min(92vw, 440px);
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a2208, #4a3a0c);
  border: 1px solid var(--gold);
  color: #ffe9a6;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.feat-toast.is-in {
  transform: translate(-50%, 0);
}

.feat-list {
  margin: 0 0 18px;
}

.feat-head {
  font-weight: 800;
  font-size: 17px;
  color: var(--gold);
  margin: 4px 0 10px;
}

.feat-group {
  background: var(--panel, #16382a);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.feat-group > summary {
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 14px;
}

.feat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-dim);
}

.feat-row.is-done {
  color: var(--text);
  background: rgba(232, 185, 35, 0.08);
}

.feat-row .feat-reward {
  white-space: nowrap;
  color: var(--gold);
  font-weight: 700;
}

/* A reward waits (2026-10-06): the mode's 🏆 blinks with a gold glow and shows how many. */
.has-claim {
  position: relative;
  border-color: var(--gold);
  animation: claim-blink 1s ease-in-out infinite;
}

.claim-dot {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e0322b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #111);
}

@keyframes claim-blink {
  0%,
  100% {
    background: var(--panel, #16382a);
    box-shadow: 0 0 0 rgba(255, 210, 60, 0);
    transform: scale(1);
  }
  50% {
    background: #5a4510;
    box-shadow: 0 0 14px 4px rgba(255, 210, 60, 0.85);
    transform: scale(1.12);
  }
}


.feat-row {
  align-items: center;
}

.feat-row.is-taken {
  opacity: 0.5;
}

.feat-row.is-taken .feat-reward {
  color: var(--text-dim);
  font-weight: 600;
}

.feat-row .feat-reward.is-new {
  animation: feat-reveal 1.4s ease-out;
}

@keyframes feat-reveal {
  0% { color: #ffe27a; transform: scale(1.35); text-shadow: 0 0 10px rgba(255, 213, 74, 0.9); }
  100% { transform: scale(1); }
}

/* "Open": locked (dim, 🔒) until reached, then bright gold like the coin amounts were. */
.feat-open {
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  font-weight: 700;
  color: var(--text-dim);
  opacity: 0.6;
}

.feat-row.is-ready .feat-open {
  color: var(--gold);
  opacity: 1;
  cursor: pointer;
}

.feat-waiting {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(232, 185, 35, 0.08);
  padding: 10px 0;
  margin-bottom: 12px;
}

.feat-waiting-title {
  font-weight: 800;
  color: var(--gold);
  padding: 0 14px 8px;
}

.feat-open-all {
  display: block;
  width: calc(100% - 28px);
  margin: 10px 14px 0;
}

/* What a reward paid: a bubble over the button, 3 s, then a slow fade (js/achievements.js). */
.feat-gain {
  position: fixed;
  z-index: 1300;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff3c2, #f1c63a);
  color: #3a2700;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 213, 74, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.feat-gain::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-bottom: 0;
  border-top-color: #f1c63a;
}

.feat-gain.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feat-gain.is-out {
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

/* An opened reward waits for its bubble: "Open" dimmed, then the row fades away with the bubble. */
.feat-row.is-opened .feat-open,
.feat-waiting.is-opened .feat-open,
.feat-waiting.is-opened .feat-open-all {
  opacity: 0.35;
  cursor: default;
}

.feat-row.is-leaving,
.feat-waiting.is-leaving {
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

.feat-group-dot {
  display: inline-block;
  margin-left: 8px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e0322b;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

