.cr-num { font-variant-numeric: tabular-nums; }
.cr-icon { display: block; flex: none; }

.cr-wordmark { display: inline-flex; align-items: center; gap: calc(var(--mark) * .36); }
.cr-wordmark-mark { display: block; width: var(--mark); height: var(--mark); border-radius: 25%; }
.cr-wordmark-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(var(--mark) * .75);
  letter-spacing: -.02em;
  line-height: 1;
}

.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cr-btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.cr-btn-md { height: 48px; padding: 0 20px; }
.cr-btn-lg { height: 56px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.cr-btn-block { display: flex; width: 100%; }
.cr-btn-primary { background: var(--primary); color: var(--primary-ink); }
.cr-btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.cr-btn-secondary { background: transparent; border-color: var(--field-edge); color: var(--ink); }
.cr-btn-secondary:hover:not(:disabled) { background: var(--stripe); }
.cr-btn-quiet { background: transparent; color: var(--accent-text); padding-left: 8px; padding-right: 8px; }
.cr-btn-quiet:hover:not(:disabled) { background: var(--stripe); }
.cr-btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.cr-btn:disabled { opacity: .45; cursor: default; }

.cr-icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.cr-icon-btn:hover:not(:disabled) { background: var(--stripe); }
.cr-icon-btn[aria-pressed="true"] { border-color: var(--active); color: var(--active); }

.cr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.cr-pill-accent { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.cr-pill-active { background: var(--active-tint); border-color: var(--active); color: var(--active); }

.cr-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.cr-eyebrow-accent { color: var(--accent-text); }
.cr-eyebrow-muted { color: var(--ink-soft); }
.cr-eyebrow-ink { color: var(--gold-ink); }

.cr-card { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.cr-card-padded { padding: 24px; }
.cr-card-accent { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.cr-coins {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.cr-coins .cr-icon { color: var(--gold); }
button.cr-coins { cursor: pointer; }

.cr-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
.cr-timer-time { min-width: 48px; font-weight: 800; font-size: 16px; }
.cr-timer-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: var(--stripe);
  color: var(--ink);
  cursor: pointer;
}

.cr-progress { display: flex; align-items: center; gap: 14px; }
.cr-progress-track { flex: 1; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cr-progress-fill { height: 100%; border-radius: 999px; background: var(--gold); transition: width .4s; }
.cr-progress-label { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

.cr-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: var(--tile-w, 42px);
  height: var(--tile-h, 52px);
  padding: 0 0 var(--tile-pad, 6px);
  border-radius: var(--tile-r, 9px);
  border: 1px solid var(--line-2);
  background: var(--stripe);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cr-tile-n {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: var(--tile-n, 10px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-faint);
}
.cr-tile-ch { font-size: var(--tile-ch, 22px); font-weight: 800; line-height: 1; }
.cr-tile.is-first { box-shadow: inset 0 -3px 0 var(--gold-deep); }
.cr-tile.is-first .cr-tile-n { color: var(--accent-text); }
.cr-tile.is-solved { background: var(--solved); border-color: var(--solved-edge); }
.cr-tile.is-active { background: var(--active-tint); border-color: var(--active); color: var(--active); }
.cr-tile.is-cursor { background: var(--active); border-color: var(--active); color: var(--on-active); }
.cr-tile.is-cursor .cr-tile-n { color: var(--on-active); }
.cr-tile.is-fresh .cr-tile-ch { animation: cr-pop .35s ease-out; }

.cr-slot-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cr-slot {
  display: grid;
  place-items: center;
  width: var(--slot-w, 44px);
  height: var(--slot-h, 54px);
  border-radius: 10px;
  border: 1px solid var(--field-edge);
  font-size: var(--slot-ch, 24px);
  font-weight: 800;
}
.cr-slot.is-filled { background: var(--solved); border-color: var(--solved-edge); }
.cr-slot.is-cursor { border: 2px solid var(--active); background: var(--active-tint); }
.cr-slot.is-first { box-shadow: inset 0 -3px 0 var(--gold-deep); }
.cr-slot-n { font-size: 10px; font-weight: 700; color: var(--ink-faint); }

.cr-clue-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.cr-clue-row:first-child { border-top: 0; }
.cr-clue-row.is-current { background: var(--active-tint); box-shadow: inset 3px 0 0 var(--active); }
.cr-clue-key {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--stripe);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}
.cr-clue-row.is-current .cr-clue-key { background: var(--active); color: var(--on-active); }
.cr-clue-row.is-solved .cr-clue-key { background: var(--gold); color: var(--gold-ink); }
.cr-clue-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.cr-clue-row.is-solved .cr-clue-text { color: var(--ink-faint); }
.cr-clue-tail { flex: none; font-size: 12px; font-weight: 800; color: var(--ink-faint); }
.cr-clue-row.is-solved .cr-clue-tail { letter-spacing: 2px; color: var(--accent-text); }

.cr-name-strip { display: flex; flex-wrap: wrap; gap: var(--name-gap, 5px); }
.cr-name-tile {
  display: grid;
  place-items: center;
  width: var(--name-w, 30px);
  height: var(--name-h, 38px);
  border-radius: 7px;
  font-weight: 800;
  font-size: var(--name-ch, 17px);
}
.cr-name-tile.is-found { background: var(--gold); color: var(--gold-ink); animation: cr-pop .35s ease-out; }
.cr-name-tile.is-current { border: 2px solid var(--active); background: var(--active-tint); }
.cr-name-tile.is-empty { border: 1px dashed var(--field-edge); }

.cr-toggle {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--field-edge);
  background: var(--stripe);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cr-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink-soft);
  transition: transform .15s, background .15s;
}
.cr-toggle[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.cr-toggle[aria-checked="true"] .cr-toggle-knob { transform: translateX(20px); background: var(--gold-ink); }

.cr-segmented { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--stripe); }
.cr-segment {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cr-segment.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }

.cr-setting { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cr-setting-text { flex: 1; min-width: 0; }
.cr-setting-title { font-weight: 700; font-size: 15px; }
.cr-setting-desc { font-size: 13px; color: var(--ink-soft); }
.cr-setting-danger .cr-setting-title { color: var(--bad); }

.cr-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--scrim);
}
.cr-sheet {
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 48px var(--shadow);
  animation: cr-rise .35s ease-out;
}
.cr-sheet.is-wide { width: min(940px, 100%); }
.cr-sheet-handle { display: none; }
.cr-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cr-sheet-title { flex: 1; font-family: var(--display); font-weight: 600; font-size: 24px; }

@media (max-width: 600px) {
  .cr-sheet-scrim { align-items: flex-end; padding: 0; }
  .cr-sheet {
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    animation: cr-slide-up .4s ease-out;
  }
  .cr-sheet-handle {
    display: block;
    width: 36px;
    height: 5px;
    margin: -10px auto 10px;
    border-radius: 999px;
    background: var(--line-2);
    transition: width .12s, background .12s;
  }
  .cr-sheet.is-armed .cr-sheet-handle { width: 48px; background: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .cr-sheet, .cr-sheet-handle { transition: none !important; }
}

.cr-toast {
  display: inline-block;
  max-width: min(460px, calc(100vw - 24px));
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 14px;
  box-shadow: 0 10px 28px var(--shadow);
}
.cr-toast-bad { border-color: var(--bad); color: var(--bad); }


.cr-hint-btn {
  display: inline-flex;
  flex: 1 1 140px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--field-edge);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.cr-hint-btn:hover:not(:disabled) { background: var(--stripe); }
.cr-hint-btn:disabled { opacity: .45; cursor: default; }
.cr-hint-cost { color: var(--accent-text); }

.cr-keyboard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 4px 14px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.cr-key-row { display: flex; justify-content: center; gap: 5px; }
.cr-key {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  min-width: 0;
  max-width: 40px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--line-2);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
}
.cr-key.is-down { filter: brightness(1.25); }
.cr-key-back { flex-grow: 1.5; max-width: 56px; background: var(--field-edge); }
.cr-key-hint { flex-grow: 1.5; max-width: 56px; background: var(--active-tint); color: var(--accent-text); font-size: 13px; font-weight: 800; }
.cr-keyboard.is-off .cr-key { color: var(--ink-faint); }

@keyframes cr-pop { 0% { transform: scale(.8); opacity: .2; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes cr-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes cr-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cr-slide-up { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cr-tile.is-fresh .cr-tile-ch, .cr-name-tile.is-found, .cr-sheet { animation: none; }
}

.cr-pill-quiet { background: var(--stripe); border-color: transparent; color: var(--ink-2); }
.cr-pill-soft { background: var(--gold-tint); border-color: transparent; color: var(--accent-text); }
.cr-progress-fill.is-active { background: var(--active); }

.cr-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--av);
  height: var(--av);
  border-radius: 999px;
  background: var(--stripe);
  color: var(--ink);
  font-weight: 800;
  font-size: calc(var(--av) * .41);
}
.cr-avatar.is-gold { background: var(--gold); color: var(--gold-ink); }
.cr-avatar.is-silver { background: var(--silver); color: var(--gold-ink); }
.cr-avatar.is-bronze { background: var(--bronze); color: var(--gold-ink); }
.cr-avatar.is-you { background: var(--active); color: var(--page); }

.cr-header { padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
.cr-header-in {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
}
.cr-header-home { color: var(--ink); text-decoration: none; display: inline-flex; }
.cr-header-gap { flex: 1; min-height: 44px; }
.cr-menu-wrap { position: relative; display: flex; }
.cr-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.cr-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cr-menu-email { padding: 8px 12px; font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; }
.cr-menu-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cr-menu-item:hover { background: var(--stripe); }
.cr-menu-item.is-danger { color: var(--bad); }

.cr-leader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.cr-leader.is-you { background: var(--active-tint); border-color: var(--active); }
.cr-leader-rank { flex: none; width: 28px; font-weight: 800; color: var(--ink-soft); }
.cr-leader-rank.is-gold { color: var(--gold); }
.cr-leader-rank.is-silver { color: var(--silver); }
.cr-leader-rank.is-bronze { color: var(--bronze); }
.cr-leader.is-you .cr-leader-rank { color: var(--active); }
.cr-leader-name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-leader-hints { font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.cr-leader-time { min-width: 44px; text-align: right; font-weight: 800; }

.cr-art {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-content: center;
  padding: 28px;
  border-radius: 18px;
  background: var(--page);
  border: 1px solid var(--line);
}
.cr-art-word { display: flex; gap: 4px; }
.cr-art-cell { display: block; width: 22px; height: 26px; border-radius: 5px; box-sizing: border-box; }
.cr-art-cell.is-lit { background: var(--gold); }
.cr-art-cell.is-dark { background: var(--stripe); border: 1px solid var(--line-2); }

.cr-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cr-tab {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cr-tab.is-on { background: var(--ink); color: var(--page); }
.cr-tab-count { opacity: .7; }

.cr-puzzle {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 132px;
  padding: 20px 22px;
  box-sizing: border-box;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s;
}
.cr-puzzle:hover { border-color: var(--line-2); }
.cr-puzzle-top { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.cr-puzzle-text { flex: 1; min-width: 0; }
.cr-puzzle-title { font-family: var(--display); font-size: 24px; line-height: 1.15; font-weight: 600; }
.cr-puzzle-meta { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.cr-puzzle .cr-pill { height: auto; padding: 4px 10px; font-size: 12px; font-weight: 800; flex: none; }

.cr-field { display: flex; flex-direction: column; gap: 6px; }
.cr-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cr-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--field-edge);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.cr-input::placeholder { color: var(--ink-faint); }
.cr-input:disabled { opacity: .6; }
.cr-btn-light { background: var(--ink); color: var(--page); }
.cr-btn-light:hover:not(:disabled) { background: var(--ink-2); }
a.cr-btn { text-decoration: none; box-sizing: border-box; }

.cr-stat { flex: 1 1 180px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cr-stat-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.cr-stat-value { font-size: 30px; font-weight: 800; line-height: 1.3; }
.cr-stat-detail { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.cr-stat.is-you { background: var(--active-tint); border-color: var(--active); }
.cr-stat.is-you .cr-stat-label { color: var(--active); }

.cr-daypick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cr-daypick-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink);
}
a.cr-daypick-btn:hover { background: var(--stripe); }
.cr-daypick-btn.is-off { color: var(--line-2); }
.cr-daypick-label { min-width: 120px; text-align: center; font-weight: 800; }

.cr-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
}
.cr-podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 28px 20px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  text-align: center;
}
.cr-podium-card.is-gold { padding-top: 40px; border-color: var(--gold); }
.cr-podium-badge {
  position: absolute;
  top: -14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold-ink);
}
.cr-podium-badge.is-gold { background: var(--gold); }
.cr-podium-badge.is-silver { background: var(--silver); }
.cr-podium-badge.is-bronze { background: var(--bronze); }
.cr-podium-av { --av: 58px; }
.cr-podium-card.is-gold .cr-podium-av { --av: 72px; }
.cr-podium-name { max-width: 100%; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-podium-time { font-size: 34px; font-weight: 800; line-height: 1; }
.cr-podium-hints { font-size: 13px; color: var(--ink-soft); }

.cr-ltable-wrap { border-radius: 20px; border: 1px solid var(--line); overflow-x: auto; }
.cr-ltable { width: 100%; border-collapse: collapse; }
.cr-ltable th {
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-align: left;
  color: var(--ink-soft);
}
.cr-ltable td { padding: 12px 8px; border-top: 1px solid var(--line); }
.cr-ltable .is-rank { width: 70px; padding-left: 20px; font-weight: 800; color: var(--ink-2); }
.cr-ltable td.is-gold { color: var(--gold); }
.cr-ltable td.is-silver { color: var(--silver); }
.cr-ltable td.is-bronze { color: var(--bronze); }
.cr-ltable .is-hints { width: 90px; color: var(--ink-soft); white-space: nowrap; }
.cr-ltable td.is-hints:empty::before { content: '—'; }
.cr-ltable .is-at { width: 110px; color: var(--ink-soft); }
.cr-ltable .is-time { width: 90px; padding-right: 20px; text-align: right; font-weight: 800; }
.cr-ltable tr.is-you td { background: var(--active-tint); }
.cr-ltable tr.is-you td:first-child { box-shadow: inset 3px 0 0 var(--active); color: var(--active); }
.cr-ltable-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-ltable-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .cr-podium { gap: 8px; }
  .cr-podium-card { gap: 6px; padding: 12px 8px 22px; border-radius: 16px; }
  .cr-podium-card.is-gold { padding-top: 18px; }
  .cr-podium-badge { top: auto; bottom: -11px; width: 24px; height: 24px; font-size: 12px; }
  .cr-podium-av { --av: 42px; }
  .cr-podium-card.is-gold .cr-podium-av { --av: 52px; }
  .cr-podium-name { font-size: 12px; }
  .cr-podium-time { font-size: 18px; }
  .cr-podium-hints { display: none; }
  .cr-ltable-wrap { border: 0; border-radius: 0; overflow: visible; }
  .cr-ltable { table-layout: fixed; }
  .cr-ltable thead, .cr-ltable .is-at { display: none; }
  .cr-ltable.has-podium tr.is-top { display: none; }
  .cr-ltable td { padding: 0 6px; height: 56px; border-top: 0; border-bottom: 1px solid var(--line); }
  .cr-ltable .is-rank { width: 34px; padding-left: 10px; color: var(--ink-soft); }
  .cr-ltable .is-hints { width: 64px; font-size: 12px; font-weight: 700; text-align: right; }
  .cr-ltable td.is-hints:empty::before { content: ''; }
  .cr-ltable .is-time { width: 56px; padding-right: 10px; }
}

.cr-field-label.is-shown { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cr-input.is-invalid { border-color: var(--bad); }
.cr-code { height: 60px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .4em; font-variant-numeric: tabular-nums; }

.cr-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  border-radius: 14px;
  background: var(--apple);
  color: var(--apple-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.cr-apple:hover { background: var(--apple-hover); }
.cr-apple.is-off { opacity: .5; pointer-events: none; }
.cr-apple-logo { width: 18px; height: 18px; fill: currentColor; margin-top: -2px; }

.cr-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 13px; font-weight: 700; }
.cr-divider::before, .cr-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

.cr-art-cell.has-ch {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-ink);
}

.cr-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.cr-pack:hover { border-color: var(--line-2); }
.cr-pack.is-on { border-color: var(--gold); background: var(--stripe); transform: translateY(-4px); }
.cr-pack-tag {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.cr-pack-tag.is-gold { background: var(--gold); color: var(--gold-ink); }
.cr-pack-tag.is-blue { background: var(--active); color: var(--page); }
.cr-pack-art { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-bottom: 6px; }
.cr-pack-stack { display: flex; flex-direction: column-reverse; }
.cr-pack-disc {
  display: block;
  width: 30px;
  height: 9px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold-deep);
}
.cr-pack-name { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.cr-pack-coins { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1; }
.cr-pack-unit { font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.cr-pack-reveals { font-size: 13px; color: var(--ink-soft); }
.cr-pack-value { font-size: 13px; font-weight: 800; color: var(--accent-text); }
.cr-pack-value.is-plain { color: var(--ink-soft); }
.cr-pack-price {
  align-self: stretch;
  margin-top: 8px;
  padding: 10px 0;
  border-radius: 12px;
  background: var(--stripe);
  font-weight: 800;
  text-align: center;
}
.cr-pack.is-on .cr-pack-price { background: var(--gold); color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) { .cr-pack { transition: none; } .cr-pack.is-on { transform: none; } }
.cr-pack.is-static { cursor: default; }
.cr-pack.is-static:hover { border-color: var(--line); }
.cr-pack.is-static .cr-pack-price { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }

.cr-swipe {
  position: fixed;
  top: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(78vw, 320px);
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .2s ease-out, background .12s, border-color .12s;
}
.cr-swipe.is-left { left: 12px; flex-direction: row-reverse; padding: 10px 12px 10px 16px; transform: translate(calc(-110% + var(--p) * 110%), -50%) scale(calc(.85 + var(--p) * .15)); }
.cr-swipe.is-right { right: 12px; transform: translate(calc(110% - var(--p) * 110%), -50%) scale(calc(.85 + var(--p) * .15)); }
.cr-swipe.is-on { opacity: 1; transition: background .12s, border-color .12s; }
.cr-swipe-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--stripe);
  color: var(--ink-2);
  transition: background .12s, color .12s;
}
.cr-swipe-text { display: flex; flex-direction: column; min-width: 0; }
.cr-swipe.is-left .cr-swipe-text { align-items: flex-end; text-align: right; }
.cr-swipe-label { font-weight: 800; font-size: 15px; }
.cr-swipe-detail { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cr-swipe.is-armed { border-color: var(--gold); }
.cr-swipe.is-armed .cr-swipe-icon { background: var(--gold); color: var(--gold-ink); }
.cr-swipe.is-top {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, calc(var(--y) * 1px - 100%));
}
.cr-swipe.is-top.is-on { transition: background .12s, border-color .12s, transform .2s ease-out; }
.cr-swipe.is-danger { border-color: var(--bad); color: var(--bad); }
.cr-swipe.is-danger .cr-swipe-icon { background: var(--bad); color: var(--surface); }
.cr-swipe-icon .cr-loader { padding: 0; gap: 0; }
.cr-tip {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
}
.cr-tip-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0;
  animation: cr-glow 1.2s ease-in-out 2;
}
.cr-tip.is-left .cr-tip-glow { left: 0; }
.cr-tip.is-right .cr-tip-glow { right: 0; transform: scaleX(-1); }
.cr-tip-card {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--ad-inset, 0px));
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--gold);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px var(--shadow);
  pointer-events: auto;
  animation: cr-rise .3s ease-out;
}
.cr-tip-text { flex: 1; min-width: 0; }
.cr-tip-title { font-weight: 800; font-size: 15px; }
.cr-tip-line { font-size: 13px; color: var(--ink-soft); }
@keyframes cr-glow { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .cr-swipe, .cr-swipe.is-on, .cr-swipe.is-top.is-on { transition: none; }
  .cr-tip-glow, .cr-tip-card { animation: none; }
  .cr-tip-glow { opacity: .4; }
}

.cr-store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.cr-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--page);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.cr-store.is-soon { background: transparent; border: 1px dashed var(--field-edge); color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.cr-store-note { font-size: 13px; font-weight: 700; color: var(--ink-soft); }

.cr-getcoins { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--stripe); }
.cr-getcoins.is-panel { gap: 12px; padding: 24px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); }
.cr-getcoins-title { font-weight: 800; font-size: 16px; }
.cr-getcoins.is-panel .cr-getcoins-title { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.cr-getcoins-text { margin: 0; max-width: 560px; font-size: 14px; color: var(--ink-soft); }
.cr-getcoins-text strong { color: var(--ink); overflow-wrap: anywhere; }
.cr-getcoins-link { align-self: center; font-size: 14px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.cr-getcoins-apple { font-size: 13px; color: var(--ink-2); }

@media (max-width: 640px) {
  .cr-getcoins.is-panel { padding: 16px; }
  .cr-getcoins.is-panel .cr-getcoins-title { font-size: 20px; }
  .cr-getcoins.is-panel .cr-store { flex: 1 1 100%; }
}

.cr-update { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 420px; margin: 0 auto; padding: 72px 24px 48px; text-align: center; }
.cr-update-title { margin: 8px 0 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--ink); }
.cr-update-text { margin: 0; font-size: 16px; color: var(--ink-2); }
.cr-update-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.cr-update .cr-btn { margin-top: 8px; text-decoration: none; }

.cr-stat.is-gold { background: var(--gold-tint); border-color: var(--gold); }
.cr-stat.is-gold .cr-stat-label { color: var(--accent-text); }

.cr-streak { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.cr-streak-head { display: flex; align-items: center; gap: 14px; }
.cr-streak-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-tint); color: var(--gold); }
.cr-streak-titles { flex: 1; min-width: 0; }
.cr-streak-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.cr-streak-line { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.cr-streak-reward { color: var(--accent-text); }
.cr-streak-more { flex: none; text-decoration: none; }
.cr-streak-week { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cr-streak-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cr-streak-dow { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.cr-streak-mark { display: grid; place-items: center; width: 30px; height: 30px; box-sizing: border-box; border-radius: 9px; background: var(--stripe); font-size: 11px; font-weight: 800; }
.cr-streak-mark.is-solved { background: var(--gold); color: var(--gold-ink); }
.cr-streak-mark.is-frozen { background: var(--active-tint); border: 1px solid var(--active); color: var(--active); }
.cr-streak-mark.is-today { background: transparent; border: 2px dashed var(--gold); color: var(--accent-text); }
.cr-streak-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cr-streak-goal { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); }
.cr-streak-goal-days { font-size: 13px; font-weight: 700; }
.cr-streak-goal-coins { font-size: 15px; font-weight: 800; color: var(--ink); }
.cr-streak-goal-state { font-size: 12px; color: var(--ink-soft); }
.cr-streak-goal.is-earned { background: var(--stripe); border-color: transparent; color: var(--ink-2); }
.cr-streak-goal.is-earned .cr-streak-goal-coins { color: var(--ink-2); }
.cr-streak-goal.is-today, .cr-streak-goal.is-next { background: var(--gold-tint); border-color: var(--gold); }
.cr-streak-goal.is-today .cr-streak-goal-coins, .cr-streak-goal.is-next .cr-streak-goal-coins { color: var(--accent-text); }
.cr-streak-note { margin: 0; font-size: 14px; color: var(--ink-2); }

.cr-streak-lost { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.cr-streak-lost-art { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 26px; background: var(--gold-tint); color: var(--gold); }
.cr-streak-lost-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 36px; line-height: 1.05; letter-spacing: -.5px; }
.cr-streak-lost-text { margin: 0; max-width: 340px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cr-streak-lost-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; text-align: left; }
.cr-streak-lost-stats .cr-stat { padding: 16px; }
.cr-streak-lost-stats .cr-stat-value { font-size: 26px; line-height: 1.2; }
.cr-streak-lost-note { margin: 0; width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 14px; background: var(--page); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink-soft); text-align: left; }
.cr-streak-lost-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.cr-freeze-saved { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; border: 1px solid var(--active); background: var(--active-tint); }
.cr-freeze-saved-head { display: flex; align-items: center; gap: 14px; }
.cr-freeze-saved-badge { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--active); color: var(--on-active); }
.cr-freeze-saved-title { flex: 1; margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.cr-freeze-saved-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cr-freeze-saved-play { background: var(--active); color: var(--on-active); }

.cr-freeze { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.cr-freeze-head { display: flex; align-items: center; gap: 14px; }
.cr-freeze-titles { flex: 1; min-width: 0; }
.cr-freeze-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; }
.cr-freeze-held { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.cr-freeze-slots { display: flex; gap: 6px; }
.cr-freeze-slot { display: grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; border-radius: 12px; border: 1px dashed var(--field-edge); }
.cr-freeze-slot.is-held { background: var(--active-tint); border: 1px solid var(--active); color: var(--active); }
.cr-freeze-about { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.cr-freeze-buy { flex: none; height: 64px; justify-content: space-between; gap: 12px; padding: 0 16px; text-align: left; }
.cr-freeze-buy .cr-icon { color: var(--gold); }
.cr-freeze-buy-text { display: flex; flex-direction: column; gap: 2px; }
.cr-freeze-buy-label { font-weight: 800; font-size: 16px; }
.cr-freeze-confirm { display: flex; flex-direction: column; gap: 10px; }
.cr-freeze-ask { margin: 0; font-size: 14px; color: var(--ink-2); }
.cr-freeze-confirm-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cr-freeze-error { margin: 0; font-size: 14px; color: var(--bad); }

.cr-rewards { display: flex; flex-direction: column; padding: 4px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.cr-reward { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.cr-reward + .cr-reward { border-top: 1px solid var(--line); }
.cr-reward-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gold-tint); color: var(--gold); }
.cr-reward-icon.is-strong { background: var(--gold); color: var(--gold-ink); }
.cr-reward-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-reward-title { font-weight: 700; color: var(--ink); }
.cr-reward-detail { font-size: 13px; color: var(--ink-soft); }
.cr-reward-amount { font-weight: 800; font-size: 18px; color: var(--accent-text); }

.cr-remind-scrim { z-index: 110; }
.cr-remind { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 24px 32px; text-align: center; }
.cr-remind-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--gold-tint); color: var(--gold); }
.cr-remind-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.cr-remind-text { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.cr-remind-fine { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.cr-remind-note { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cr-remind-actions { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cr-remind-actions .cr-btn-quiet { height: 48px; color: var(--ink-2); justify-content: center; }
.cr-time-field { width: 132px; }
.cr-time { height: 44px; padding: 0 12px; }

@media (max-width: 600px) {
  .cr-remind { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

.cr-loader { display: grid; justify-items: center; gap: 14px; padding: 28px 0; color: var(--ink-soft); --loader: 56px; }
.cr-loader-mark { display: block; width: var(--loader); height: var(--loader); overflow: visible; }
.cr-loader-blank { fill: var(--line-2); }
.cr-loader-sq {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: cr-loader-in 300ms cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 80ms) both,
    cr-loader-wave 1400ms ease-in-out calc(1380ms + var(--i) * 110ms) infinite;
}
.cr-loader.is-long .cr-loader-sq { animation-delay: calc(var(--i) * 80ms), calc(780ms + var(--i) * 110ms); }
.cr-loader-text { margin: 0; max-width: 32ch; font-size: 14px; line-height: 1.45; text-align: center; }
.cr-loader.is-short .cr-loader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cr-loader.is-still .cr-loader-sq { animation: none; }
.cr-loader.is-still .cr-loader-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }

@keyframes cr-loader-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes cr-loader-wave { 0%, 60%, 100% { opacity: 1; transform: none; } 25% { opacity: .35; transform: scale(.84); } }

@media (prefers-reduced-motion: reduce) {
  .cr-loader-sq { animation: none; }
  .cr-loader.is-short .cr-loader-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}
