:root {
  color-scheme: light;
  --text-primary: #4a5568;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: #f9f3e9; color: var(--text-primary); font-family: Georgia, "Times New Roman", serif; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

@keyframes auth-spin { to { transform: rotate(360deg); } }
/* COLLECTION MODAL OVERLAY */
.collection-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 18, 34, 0.66);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 560ms ease, visibility 0s linear 560ms;
  padding: 0;
}

.collection-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 560ms ease, visibility 0s linear 0s;
}

/* COLLECTION MODAL */
.collection-modal {
  position: relative;
  background: linear-gradient(160deg, #fff8eb 0%, #f5e7ce 100%);
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(120, 92, 58, 0.34);
  animation: modalSlideIn 860ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-34px) scale(0.965);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.collection-close-btn {
  position: fixed;
  top: 9px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(120, 92, 58, 0.34);
  border-radius: 0;
  background: rgba(255, 249, 236, 0.96);
  color: #654522;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.collection-close-btn:hover {
  background: rgba(249, 115, 22, 0.14);
  transform: scale(1.05);
}

.collection-back-btn {
  position: absolute;
  top: 9px;
  left: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(120, 92, 58, 0.34);
  border-radius: 0;
  background: rgba(255, 249, 236, 0.96);
  color: #654522;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 10;
}

.collection-back-btn:hover {
  background: rgba(249, 115, 22, 0.14);
  transform: scale(1.05);
}

/* COLLECTION HEADER */
.collection-header {
  position: relative;
  padding: 0px 32px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.2) 0%, rgba(255, 255, 255, 0.25) 100%);
  border-bottom: 1px solid rgba(120, 92, 58, 0.2);
}

.collection-title {
  font-size: 32px;
  font-weight: 800;
  color: #4a2d0f;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.collection-icon-large {
  font-size: 36px;
  filter: drop-shadow(0 4px 10px rgba(120, 92, 58, 0.28));
  height: 85px;
  object-fit: contain;
}

.collection-subtitle {
  color: #6b4a26;
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}

.collection-profile-link {
  position: absolute;
  right: 32px;
  bottom: 6px;
  border: none;
  background: transparent;
  color: #7a3f14;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 2px 0;
  line-height: 1.1;
}

.collection-profile-link:hover {
  color: #4a2d0f;
}

.collection-profile-link:focus-visible {
  outline: 2px solid rgba(122, 63, 20, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

.collection-profile-link.is-disabled {
  color: rgba(107, 74, 38, 0.72);
  cursor: not-allowed;
}

.collection-profile-link-tooltip {
  position: absolute;
  right: 32px;
  bottom: 30px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.96);
  color: #f9fafb;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

/* COLLECTION TABS */
.collection-tabs {
  display: flex;
  gap: 8px;
  padding: 0 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(120, 92, 58, 0.22);
}

.collection-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 12px;
  cursor: pointer;
  color: #7a5c37;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
}

.collection-tab:hover {
  color: #4a2d0f;
  background: rgba(255, 255, 255, 0.45);
}

.collection-tab.active {
  color: #3f2a10;
  border-bottom-color: #f59e0b;
}

.collection-tab.has-unseen {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.03) 100%);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.collection-tab.has-unseen .collection-tab-label {
  color: #7f1d1d;
  font-weight: 800;
}

.collection-tab.has-unseen.active {
  border-bottom-color: #dc2626;
  box-shadow:
    inset 0 0 0 1px rgba(220, 38, 38, 0.32),
    0 10px 22px rgba(185, 28, 28, 0.12);
}

.collection-tab-unseen-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.25);
}

.collection-tab-icon {
  font-size: 20px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.collection-tab-label {
  font-size: 13px;
}

.collection-tab-count {
  font-size: 11px;
  color: #8a6a40;
  font-weight: 500;
}

.collection-tab-count.is-loading {
  width: 12px;
  height: 12px;
}

.collection-tab-count.is-loading::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: auth-spin 0.72s linear infinite;
}

.collection-tab.active .collection-tab-count {
  color: #b45309;
}

.collection-tab--coming-soon {
  background: rgba(71, 85, 105, 0.1);
  color: #64748b;
  filter: grayscale(0.8);
  opacity: 0.68;
}

.collection-tab--coming-soon:hover,
.collection-tab--coming-soon.active {
  background: rgba(71, 85, 105, 0.16);
  border-bottom-color: #64748b;
  color: #334155;
  filter: grayscale(0.45);
  opacity: 0.92;
}

.collection-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid rgba(100, 116, 139, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

/* COLLECTION CONTENT */
.collection-content {
  padding: 0 32px 64px;
  overflow: visible;
  max-height: none;
}

.collection-tab-info-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  margin-bottom: 10px;
}

.collection-tab-info-label {
  color: #5b3b17;
  font-size: 0.78rem;
  font-weight: 700;
}

.collection-tab-info-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(120, 92, 58, 0.42);
  border-radius: 0;
  background: rgba(255, 249, 236, 0.96);
  color: #654522;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.collection-tab-info-button:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(180, 83, 9, 0.45);
}

.collection-tab-info-button:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.68);
  outline-offset: 2px;
}

.collection-tab-panel {
  display: none;
}

.collection-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.collection-daily-content {
  display: grid;
  gap: 34px;
  color: #332719;
}

.daily-collection-heading {
  margin: 0 0 14px;
  color: #3c260f;
  font-family: "nyt-karnak";
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.daily-coin-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 88px));
  grid-auto-rows: 112px;
  justify-content: start;
  min-height: 112px;
  padding: 0 12px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 88px,
    #b77a3f 88px 94px,
    #75451f 94px 104px,
    #4c2a13 104px 108px,
    transparent 108px 112px
  );
}

.daily-coin-shelf-stage {
  position: relative;
}

.daily-coin-shelf-selection {
  position: absolute;
  z-index: 2;
  top: -87px;
  left: 50%;
  width: min(330px, calc(100% - 24px));
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #bc9a61;
  border-radius: 4px;
  background: #fff9ec;
  box-shadow: 0 8px 18px rgba(73, 47, 20, 0.16);
  color: #3e382e;
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.daily-coin-shelf-selection[hidden] {
  display: none !important;
}

.daily-coin-shelf-selection::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid #bc9a61;
  border-bottom: 1px solid #bc9a61;
  background: #fff9ec;
  transform: translateX(-50%) rotate(45deg);
}

.daily-coin-shelf-selection-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.daily-coin-shelf-selection-kicker {
  color: #276657;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-coin-shelf-selection strong {
  color: #233f36;
}

.daily-coin-shelf-selection-cancel {
  padding: 0;
  border: 0;
  background: transparent;
  color: #77502c;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.daily-coin-shelf-selection-cancel:hover {
  color: #3e2814;
}

.daily-coin-shelf-stage.is-selecting-coin {
  margin-top: 73px;
}

.daily-coin-shelf-grid.is-selecting-coin {
  outline: 2px solid #2f8b76;
  outline-offset: 6px;
  box-shadow: 0 0 0 7px rgba(47, 139, 118, 0.1);
  animation: dailyCoinShelfReadyPulse 1.8s ease-in-out infinite;
}

@keyframes dailyCoinShelfReadyPulse {
  0%, 100% { outline-color: rgba(47, 139, 118, 0.58); }
  50% { outline-color: #2f8b76; }
}

.daily-coin-shelf-grid.is-selecting-coin .daily-coin-shelf-item:hover,
.daily-coin-shelf-grid.is-selecting-coin .daily-coin-shelf-item:focus-visible {
  z-index: 1;
  outline: none;
}

.daily-coin-shelf-grid.is-selecting-coin .daily-coin-shelf-item:hover .daily-coin-shelf-image,
.daily-coin-shelf-grid.is-selecting-coin .daily-coin-shelf-item:focus-visible .daily-coin-shelf-image {
  transform: translateY(-6px) scale(1.12);
  filter:
    drop-shadow(0 0 5px rgba(255, 190, 55, 0.9))
    drop-shadow(0 8px 5px rgba(44, 25, 10, 0.34));
}

.daily-coin-shelf-item {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 0 4px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.daily-coin-shelf-image {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(44, 25, 10, 0.28));
  transition: transform 140ms ease-out;
}

.daily-coin-shelf-item:hover .daily-coin-shelf-image,
.daily-coin-shelf-item:focus-visible .daily-coin-shelf-image {
  transform: translateY(-4px) scale(1.06);
  filter: drop-shadow(0 7px 5px rgba(44, 25, 10, 0.34));
}

.daily-coin-shelf-item:focus-visible {
  outline: 2px solid #8d5a20;
  outline-offset: -8px;
}

.daily-coin-shelf-detail {
  width: min(360px, calc(100vw - 32px));
  margin: auto;
  padding: 28px 24px 24px;
  border: 1px solid #9a6a31;
  border-radius: 7px;
  background: linear-gradient(160deg, #fff9ec, #eed9b7);
  color: #3c260f;
  box-shadow: 0 24px 60px rgba(30, 18, 8, 0.38);
  text-align: center;
}

.daily-coin-shelf-detail[open] {
  animation: dailyCoinShelfDetailOpen 320ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}

.daily-coin-shelf-detail::backdrop {
  background: rgba(24, 17, 10, 0.62);
  animation: dailyCoinShelfBackdropOpen 260ms ease-out both;
}

.daily-coin-shelf-detail-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(92, 57, 22, 0.35);
  border-radius: 4px;
  background: #fff8e9;
  color: #4f3013;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.daily-coin-shelf-detail-image {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(44, 25, 10, 0.3));
}

.daily-coin-shelf-detail[open] .daily-coin-shelf-detail-image {
  animation: dailyCoinShelfImageOpen 440ms cubic-bezier(0.16, 0.84, 0.24, 1) 70ms both;
}

@keyframes dailyCoinShelfDetailOpen {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dailyCoinShelfBackdropOpen {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dailyCoinShelfImageOpen {
  from { opacity: 0; transform: translateY(8px) scale(0.82) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.daily-coin-shelf-detail-label {
  display: block;
  color: #826039;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.daily-coin-shelf-detail h4 {
  margin: 5px 0 8px;
  color: #3c260f;
  font-family: "nyt-karnak";
  font-size: 1.2rem;
  letter-spacing: 0;
}

.daily-coin-shelf-detail-date {
  display: block;
  color: #67533c;
  font-size: 0.84rem;
  font-weight: 700;
}

.daily-coin-shelf-detail-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.daily-coin-shelf-detail-prev,
.daily-coin-shelf-detail-next {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #76501f;
  border-radius: 5px;
  background: #765613;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.daily-coin-shelf-detail-prev:hover,
.daily-coin-shelf-detail-next:hover {
  background: #5f420f;
}

.daily-coin-shelf-detail-prev:focus-visible,
.daily-coin-shelf-detail-next:focus-visible {
  outline: 2px solid #c58b2c;
  outline-offset: 2px;
}

.daily-coin-shelf-detail-count {
  min-width: 42px;
  color: #67533c;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.daily-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
  justify-content: start;
  gap: 12px;
}

.daily-history-summary {
  width: min(680px, 100%);
  margin: -3px 0 18px;
  padding: 14px 16px;
  border-left: 4px solid #2f7d69;
  background: rgba(255, 250, 240, 0.72);
}

.daily-history-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
}

.daily-history-summary-stats div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.daily-history-summary-stats dt {
  color: #67533c;
  font-size: 0.74rem;
  font-weight: 700;
}

.daily-history-summary-stats dd {
  margin: 0;
  color: #214f43;
  font-family: "nyt-karnak";
  font-size: 1.05rem;
  font-weight: 900;
}

.daily-history-encouragement {
  margin: 10px 0 0;
  color: #315f50;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.daily-history-encouragement.has-shortfall {
  color: #76501f;
}

.daily-history-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 154px;
  padding: 14px;
  border: 1px solid rgba(117, 82, 18, 0.24);
  border-radius: 7px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 5px 14px rgba(74, 45, 15, 0.08);
}

.daily-history-row.is-win {
  border-color: #2f7d4b;
  box-shadow: 0 5px 14px rgba(35, 102, 61, 0.12);
}

.daily-history-row.is-loss {
  border-color: #a53b37;
  box-shadow: 0 5px 14px rgba(144, 46, 46, 0.12);
}

.daily-history-replay {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.daily-history-replay-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 6px 5px 7px;
  border: 1px solid #123f36;
  border-radius: 6px;
  background: linear-gradient(180deg, #347d69 0%, #205e50 100%);
  color: #fff;
  font: inherit;
  box-shadow: 0 3px 0 #123f36, 0 7px 13px rgba(24, 69, 59, 0.2);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 120ms ease-out;
}

.daily-history-replay-button:hover {
  background: linear-gradient(180deg, #347d69 0%, #205e50 100%);
  box-shadow: 0 3px 0 #123f36, 0 7px 13px rgba(24, 69, 59, 0.2);
  transform: translateY(0);
}

.daily-history-replay-button:active {
  box-shadow: 0 1px 0 #123f36, 0 3px 7px rgba(24, 69, 59, 0.2);
  transform: translateY(2px);
}

.daily-history-replay-button:focus-visible {
  outline: 3px solid rgba(210, 153, 47, 0.72);
  outline-offset: 3px;
}

.daily-history-replay-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(9, 49, 41, 0.3);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease-out;
}

.daily-history-replay-button:hover .daily-history-replay-icon {
  transform: rotate(-32deg);
}

.daily-history-replay-label {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.daily-history-replay-coin-slot {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 32px;
  margin-left: 2px;
  border: 1px solid rgba(223, 238, 232, 0.46);
  border-radius: 4px;
  background: linear-gradient(90deg, #183f37, #3c7466 48%, #173b34);
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 2px rgba(4, 25, 21, 0.52);
  overflow: hidden;
}

.daily-history-replay-coin-slot::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: #071b17;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2), inset 1px 0 2px #000;
}

.daily-history-replay-coin-edge {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 7px;
  height: 20px;
  border: 1px solid #8f5b0d;
  border-radius: 50%;
  background: linear-gradient(90deg, #8c5708, #ffd76d 45%, #b8750d);
  box-shadow: 1px 1px 3px rgba(5, 24, 20, 0.58);
  transform: translateX(6px);
  transition: transform 160ms ease-out;
}

.daily-history-replay-button:hover .daily-history-replay-coin-edge {
  transform: translateX(3px);
}

.daily-history-replay-button:active .daily-history-replay-coin-edge {
  transform: translateX(0);
}

.daily-history-replay [role="status"] {
  grid-column: 1 / -1;
  color: #8d2e2e;
  font-size: 0.74rem;
}

.daily-history-result {
  padding: 5px 3px;
  border-radius: 4px;
  background: #902e2e;
  color: #fff;
  font-size: 0.69rem;
  font-weight: 900;
  text-align: center;
}

.daily-history-row.is-win .daily-history-result {
  background: #23663d;
}

.daily-history-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.daily-history-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.daily-history-title-row strong,
.daily-history-opening,
.daily-history-details span {
  overflow-wrap: anywhere;
}

.daily-history-opening {
  color: #75552c;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.daily-history-hat-trick {
  align-self: center;
  margin-left: 4px;
  color: #8a5b08;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 14px;
}

.daily-history-attempts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 14px;
}

.daily-history-attempt {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(42, 35, 24, 0.24);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.daily-history-attempt.is-win {
  background: #2c844a;
}

.daily-history-attempt.is-loss {
  background: #b83b36;
}

.daily-history-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.daily-history-details span {
  position: relative;
  color: #5e584e;
  font-size: 0.78rem;
}

.daily-history-details span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9a8b73;
  transform: translateY(-50%);
}

.daily-history-details .daily-history-rat::before {
  content: none;
}

.daily-history-rat.is-caught {
  color: #23663d;
  font-weight: 800;
}

.daily-history-rat.is-missed {
  color: #8d2e2e;
  font-weight: 800;
}

body[data-mode="dark"] .collection-daily-content,
body[data-mode="dark"] .daily-collection-heading {
  color: #3c260f;
}

.daily-history-coin {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #77736a;
  font-size: 0.66rem;
  font-weight: 700;
}

.daily-history-coin img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
}

.daily-history-coin.is-earned img {
  filter: none;
  opacity: 1;
}

@media (max-width: 560px) {
  .daily-history-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .daily-history-row {
    grid-template-columns: 44px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .daily-history-replay {
    grid-column: 1 / -1;
  }

  .daily-coin-shelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(64px, 76px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-coin-shelf-grid.is-selecting-coin {
    animation: none;
  }

  .daily-history-replay-button,
  .daily-history-replay-icon,
  .daily-coin-shelf-image {
    transition: none;
  }

  .daily-coin-shelf-detail[open],
  .daily-coin-shelf-detail::backdrop,
  .daily-coin-shelf-detail[open] .daily-coin-shelf-detail-image {
    animation: none;
  }
}

.collection-coming-soon-panel {
  grid-column: 1 / -1;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border: 1px solid rgba(100, 116, 139, 0.26);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.84));
  color: #475569;
  text-align: center;
  filter: saturate(0.55);
}

.collection-coming-soon-panel h3 {
  margin: 14px 0 8px;
  color: #334155;
  font-family: "Cinzel", Georgia, serif;
  font-size: 24px;
}

.collection-coming-soon-panel p {
  max-width: 58ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.collection-tab-panel[data-panel="whispers"],
.collection-tab-panel[data-panel="lessons"],
.collection-tab-panel[data-panel="openings"],
.collection-tab-panel[data-panel="famous-games"] {
  padding-bottom: clamp(56px, 8vh, 104px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* PROGRESS BAR */
.collection-progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  margin: 26px 0 24px;
}

.collection-progress-track {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(120, 92, 58, 0.16);
  border: 1px solid rgba(120, 92, 58, 0.22);
  border-radius: 0;
}

.collection-progress-fill {
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  border-radius: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.collection-progress-badge {
  position: absolute;
  left: clamp(12px, var(--collection-progress-position, 0%), calc(100% - 12px));
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b3b17;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-progress-badge:focus-visible {
  outline: 1px solid rgba(91, 59, 23, 0.6);
  outline-offset: 2px;
}

.collection-progress-tooltip {
  position: absolute;
  z-index: 20;
  left: clamp(92px, var(--collection-progress-position, 0%), calc(100% - 92px));
  bottom: calc(100% + 22px);
  width: max-content;
  max-width: min(240px, calc(100vw - 48px));
  transform: translateX(-50%);
  padding: 7px 9px;
  border: 1px solid rgba(120, 92, 58, 0.28);
  border-radius: 0;
  background: #fff9ec;
  color: #4a3a2a;
  box-shadow: 0 5px 14px rgba(55, 35, 15, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

/* COLLECTION GRID */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.collection-grid--openings {
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 16px;
  align-items: stretch;
  justify-content: start;
}

.collection-tab-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 249, 236, 0.72);
  border: 1px solid rgba(120, 92, 58, 0.3);
  border-left: 3px solid #9a5d20;
  color: #4a5568;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}

/* COLLECTION CARD */
.collection-card {
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.collection-card.unlocked {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.64) 0%, rgba(255, 248, 235, 0.72) 100%);
}

.collection-card.locked {
  --locked-card-accent: #766852;
  border-color: rgba(91, 76, 56, 0.3);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.88), rgba(220, 209, 189, 0.82)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(91, 76, 56, 0.06) 12px 13px);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.34), 0 8px 18px rgba(73, 54, 31, 0.1);
  cursor: default;
}

.collection-card.locked::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--locked-card-accent);
  border-radius: 10px;
  opacity: 0.2;
  pointer-events: none;
}

.collection-card.locked::after {
  content: '';
  position: absolute;
  top: 0;
  right: 18px;
  width: 28px;
  height: 3px;
  background: var(--locked-card-accent);
  opacity: 0.72;
  pointer-events: none;
}

.collection-card.rarity-common.locked {
  --locked-card-accent: #64748b;
  border-color: rgba(100, 116, 139, 0.34);
}

.collection-card.rarity-rare.locked {
  --locked-card-accent: #2563a6;
  border-color: rgba(37, 99, 166, 0.36);
}

.collection-card.rarity-legendary.locked {
  --locked-card-accent: #8b4a82;
  border-color: rgba(139, 74, 130, 0.38);
}

.collection-card:not(.locked):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(80, 45, 10, 0.2);
}

.collection-card--just-added {
  position: relative;
}

.collection-card--just-added::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(234, 88, 12, 0.62);
  box-shadow: inset 0 0 24px rgba(251, 146, 60, 0.24);
  pointer-events: none;
  animation: collectionJustAddedGlow 1.1s ease-in-out 2;
}

.collection-card-just-added-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff7ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.32);
  pointer-events: none;
  animation: collectionJustAddedChipIn 0.24s ease-out;
}

@keyframes collectionJustAddedGlow {
  0% {
    opacity: 0.35;
    transform: scale(0.985);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes collectionJustAddedChipIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* RARITY GLOWS (no border) */
.collection-card.rarity-common.unlocked {
  border-color: transparent;
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
}

.collection-card.rarity-rare.unlocked {
  border-color: transparent;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.collection-card.rarity-legendary.unlocked {
  border-color: transparent;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.collection-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 8px;
}

.collection-card-rarity {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collection-card-icon {
  font-size: 36px;
  margin-bottom: 4px;
}

.collection-card-lock-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 42px;
  margin: 7px 0 2px;
  border: 1px solid color-mix(in srgb, var(--locked-card-accent) 55%, transparent);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 5px 12px rgba(50, 38, 24, 0.1);
  color: var(--locked-card-accent);
}

.collection-card-lock-mark::before {
  content: '';
  position: absolute;
  left: 14px;
  bottom: 34px;
  width: 18px;
  height: 15px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.collection-card-lock-mark span {
  width: 5px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
}

.collection-card-image {
  width: 75%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  object-fit: contain;
  max-height: 70px;
}

.collection-card-image:hover {
  transform: none;
}

.collection-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #3f2a10;
  line-height: 1.3;
}

.collection-card.locked .collection-card-title {
  color: #544735;
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.collection-card-hint {
  font-size: 10px;
  color: #6b5b46;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.collection-empty {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 249, 236, 0.72);
  border: 1px solid rgba(120, 92, 58, 0.3);
  border-left: 3px solid #9a5d20;
  color: #4a5568;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.collection-opening-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  padding: 0;
  border: 1px solid rgba(128, 90, 35, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(247, 238, 221, 0.94) 100%);
  box-shadow: 0 10px 24px rgba(91, 60, 18, 0.12);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.collection-opening-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(91, 60, 18, 0.18);
  border-color: rgba(180, 120, 44, 0.36);
}

.collection-opening-card.is-complete {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.15);
}

.collection-slot-card {
  position: relative;
  min-height: 306px;
  border-style: dashed;
  box-shadow: none;
  cursor: default;
  overflow: hidden;
}

.collection-slot-card:hover {
  transform: none;
  box-shadow: none;
}

.collection-slot-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(85, 72, 51, 0.15);
}

.collection-slot-art::before,
.collection-slot-art::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.collection-slot-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.36);
}

.collection-slot-card--lesson .collection-slot-emblem {
  width: auto;
  height: auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.collection-slot-lock {
  position: absolute;
  right: 13px;
  bottom: 11px;
  width: 15px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px;
  opacity: 0.62;
}

.collection-slot-lock::before {
  content: '';
  position: absolute;
  left: 2px;
  bottom: 9px;
  width: 7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.collection-slot-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.collection-slot-message {
  color: currentColor;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.collection-slot-title {
  margin: 0;
  color: inherit;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.28;
}

.collection-slot-tag {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-slot-message {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid currentColor;
}

.collection-slot-card--lesson.difficulty-beginner {
  border-color: rgba(39, 112, 86, 0.38);
  background: #edf7f0;
  color: #215f49;
}

.collection-slot-card--lesson.difficulty-beginner .collection-slot-art {
  background: repeating-linear-gradient(135deg, rgba(39, 112, 86, 0.07) 0 8px, transparent 8px 18px);
}

.collection-slot-card--lesson.difficulty-intermediate {
  border-color: rgba(173, 111, 26, 0.42);
  background: #fff5df;
  color: #875514;
}

.collection-slot-card--lesson.difficulty-intermediate .collection-slot-art {
  background: repeating-radial-gradient(circle at center, rgba(173, 111, 26, 0.08) 0 5px, transparent 6px 15px);
}

.collection-slot-card--lesson.difficulty-advanced {
  border-color: rgba(136, 48, 67, 0.42);
  background: #fbeef1;
  color: #7c2d42;
}

.collection-slot-card--lesson.difficulty-advanced .collection-slot-art {
  background: repeating-linear-gradient(45deg, rgba(136, 48, 67, 0.07) 0 2px, transparent 2px 13px);
}

.collection-slot-card--lesson.is-locked {
  border-color: rgba(100, 116, 139, 0.38);
  background: #eef1f4;
  color: #536170;
}

.collection-slot-card--lesson.is-locked .collection-slot-art {
  background: repeating-linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0 8px, transparent 8px 18px);
}

.collection-slot-card--opening {
  border-color: rgba(34, 67, 103, 0.42);
  background: #eef4f7;
  color: #183f63;
}

.collection-slot-card--opening.side-black {
  background: #e7ebee;
  color: #253442;
}

.collection-slot-card--opening .collection-slot-art {
  background-color: #dce8ed;
  background-image:
    linear-gradient(45deg, rgba(24, 63, 99, 0.12) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(24, 63, 99, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(24, 63, 99, 0.12) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(24, 63, 99, 0.12) 75%);
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  background-size: 22px 22px;
}

.collection-slot-side-piece {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 92px;
  height: 56px;
  padding: 0 14px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.86);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 7px 7px 0 rgba(24, 63, 99, 0.14);
}

.collection-slot-card--opening.side-black .collection-slot-side-piece {
  background: #253442;
  color: #f8fafc;
}

.collection-slot-card--famous {
  border-color: rgba(125, 55, 42, 0.42);
  background: #f5f0e6;
  color: #63352d;
}

.collection-slot-card--famous .collection-slot-art {
  background:
    linear-gradient(rgba(99, 53, 45, 0.07) 1px, transparent 1px),
    #e9dfcd;
  background-size: 100% 18px;
}

.collection-slot-card--famous .collection-slot-art::before {
  inset: 18px;
  border: 1px solid rgba(99, 53, 45, 0.22);
  transform: rotate(-2deg);
}

.collection-slot-card--opening.is-locked,
.collection-slot-card--famous.is-locked {
  border-color: rgba(100, 116, 139, 0.38);
  background: #eef1f4;
  color: #536170;
}

.collection-slot-card--opening.is-locked .collection-slot-art,
.collection-slot-card--famous.is-locked .collection-slot-art {
  background-color: #e2e7eb;
  background-image: repeating-linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0 8px, transparent 8px 18px);
  background-position: 0 0;
  background-size: auto;
}

.collection-slot-card--opening.is-locked .collection-slot-side-piece {
  background: rgba(255, 255, 255, 0.72);
  color: #536170;
  box-shadow: 7px 7px 0 rgba(100, 116, 139, 0.14);
}

.collection-slot-card--famous.is-locked .collection-slot-art::before {
  border-color: rgba(100, 116, 139, 0.22);
}

.collection-slot-versus {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-slot-versus b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  font-family: Georgia, serif;
  font-size: 22px;
}

.collection-slot-versus i {
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.collection-slot-year {
  position: absolute;
  right: 13px;
  top: 11px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  font: 800 10px Georgia, serif;
}

.collection-opening-card-media {
  position: relative;
  min-height: 118px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(250, 204, 21, 0.18) 100%);
  cursor: pointer;
}

.collection-opening-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-opening-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.collection-slot-card--lesson.difficulty-beginner .collection-opening-card-status--difficulty {
  background: #215f49;
}

.collection-slot-card--lesson.difficulty-intermediate .collection-opening-card-status--difficulty {
  background: #875514;
}

.collection-slot-card--lesson.difficulty-advanced .collection-opening-card-status--difficulty {
  background: #7c2d42;
}

.collection-opening-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  flex: 1;
}

.collection-opening-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.collection-opening-card-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: #402b12;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  cursor: pointer;
}

.collection-opening-card-percent {
  flex-shrink: 0;
  min-width: 48px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  color: #0f766e;
  text-align: center;
}

.collection-opening-card-progress-row,
.collection-opening-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #7a5c37;
  font-weight: 700;
}

.collection-opening-card-footer {
  margin-top: auto;
  padding-top: 2px;
}

.collection-opening-card-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.collection-opening-card-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6 0%, #22c55e 100%);
}

.collection-opening-card-cta {
  color: #0f766e;
  white-space: nowrap;
}

.collection-opening-card-meta {
  color: #7a5c37;
}

.collection-completion-history {
  width: fit-content;
  padding: 5px 8px;
  border-left: 3px solid #0f766e;
  background: rgba(15, 118, 110, 0.1);
  color: #34210e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.training-completion-text {
  min-height: 1.4em;
  max-width: 42ch;
  margin: 2px 0 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.training-completion-text [data-training-completion-number] {
  display: inline-block;
  min-width: 2ch;
  font-weight: 900;
}

.ls-victory-card .training-completion-text,
body[data-mode="dark"] .ls-victory-card .training-completion-text {
  color: #334155;
}

.fg-victory-card .training-completion-text,
body[data-mode="dark"] .fg-victory-card .training-completion-text {
  color: #ffffff;
}

.collection-opening-card-btn {
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.collection-modal .collection-opening-card-btn:hover,
.collection-modal .collection-opening-card-btn:focus-visible {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  outline: 2px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* CAPTURE ANIMATIONS */
@keyframes toastSlideIn {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-collection-icon {
    margin-left: 6px;
    height: 42px;
  }

  .header-collection-icon .collection-icon-image {
    height: 44px;
  }

  .header-collection-icon .collection-icon-label {
    display: none;
  }

  .collection-modal {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
  
  .collection-header {
    padding: 52px 20px 16px;
  }

  .collection-profile-link {
    position: static;
    display: block;
    width: max-content;
    margin: 8px 0 0 auto;
    font-size: 0.8rem;
  }

  .collection-profile-link-tooltip {
    right: 20px;
    bottom: 26px;
    max-width: min(210px, calc(100vw - 40px));
  }
  
  .collection-title {
    font-size: 24px;
  }
  
  .collection-tabs {
    padding: 0 20px;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  
  .collection-tab {
    flex: 0 0 104px;
    padding: 12px 8px;
  }

  
  .collection-tab-label {
    font-size: 11px;
  }
  
  .collection-content {
    padding: 0 20px 20px;
  }
  
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }

  .collection-grid--openings {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .collection-opening-card {
    min-height: 0;
    width: 100%;
  }

  .collection-opening-card-media {
    min-height: 0;
  }
  
  .collection-card {
    padding: 12px;
  }
  
  .collection-card-icon {
    font-size: 28px;
  }
  
  .collection-card-title {
    font-size: 11px;
  }

  .collection-opening-card-header,
  .collection-opening-card-progress-row,
  .collection-opening-card-footer {
    flex-direction: row;
    align-items: center;
  }
}
