/* Card kit shared by Rocket Spider and Rocket Peaks: cards, backs, tables, bar, sheets and toasts.
   Games set --cw (card width), --ch (card height) and --fs (corner index size) on their root. */
.ck-root { --cw: 60px; --ch: 84px; --fs: 16px; color: #dfe9ff; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; font-family: inherit; }
.ck-root [hidden] { display: none !important; }

/* ---- cards ---- */
.ck-card { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * 0.1); background: linear-gradient(170deg, #ffffff 0%, #fbfaf6 55%, #f1efe7 100%); box-shadow: 0 0 0 0.6px rgba(0,0,0,0.38), 0 1px 2px rgba(0,0,0,0.3); color: #181a20; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; box-sizing: border-box; }
.ck-card.ck-red { color: #cf1d31; }
.ck-four .ck-card.ck-s2 { color: #1d5fcc; }
.ck-four .ck-card.ck-s3 { color: #13803d; }
.ck-card svg { display: block; fill: currentColor; }
.ck-ix { position: absolute; left: calc(var(--cw) * 0.07); right: calc(var(--cw) * 0.06); top: calc(var(--fs) * 0.1); height: calc(var(--fs) * 1.04); display: flex; align-items: center; justify-content: space-between; gap: 1px; font-size: var(--fs); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: lining-nums; white-space: nowrap; }
.ck-r.ck-10 { letter-spacing: -0.11em; margin-left: -0.04em; }
.ck-p { width: calc(var(--fs) * 0.86); height: calc(var(--fs) * 0.86); flex: none; }
.ck-big { position: absolute; left: 50%; top: 60%; width: calc(var(--cw) * 0.52); height: calc(var(--cw) * 0.52); transform: translate(-50%, -50%); }
.ck-big.ck-ace { width: calc(var(--cw) * 0.66); height: calc(var(--cw) * 0.66); }
.ck-court { position: absolute; left: 13%; right: 13%; top: calc(var(--fs) * 1.32); bottom: 7%; border-radius: calc(var(--cw) * 0.06); background: rgba(24,26,32,0.06); box-shadow: inset 0 0 0 1px rgba(24,26,32,0.22); }
.ck-red .ck-court { background: rgba(207,29,49,0.07); box-shadow: inset 0 0 0 1px rgba(207,29,49,0.28); }
.ck-emb { position: absolute; left: 50%; top: 44%; width: 72%; height: 64%; transform: translate(-50%, -50%); }
.ck-cpip { position: absolute; left: 50%; bottom: 6%; width: 28%; height: 22%; transform: translateX(-50%); opacity: 0.85; }
.ck-card.ck-down { background: var(--ck-back); box-shadow: 0 0 0 0.6px rgba(0,0,0,0.45), inset 0 0 0 calc(var(--cw) * 0.045) #f3f2ec, inset 0 0 0 calc(var(--cw) * 0.06) rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.3); }
.ck-card.ck-down > * { display: none; }

/* ---- card backs (original patterns; the rocket mark is the site's own) ---- */
.ck-root, .ck-back-rocket { --ck-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3 2 5 6 5 11l-2 3h-6l-2-3c0-5 2-9 5-11z' fill='%2355d6ff'/%3E%3Ccircle cx='12' cy='10' r='2' fill='%23122a5c'/%3E%3Cpath d='M9 16l-3 4h4zM15 16l3 4h-4z' fill='%23ffd166'/%3E%3Cpath d='M10.5 17h3l-1.5 5z' fill='%23ff6b81'/%3E%3C/svg%3E") center / 52% auto no-repeat, repeating-linear-gradient(45deg, rgba(255,255,255,0.075) 0 1.5px, transparent 1.5px 7px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.075) 0 1.5px, transparent 1.5px 7px), linear-gradient(160deg, #1d3f86, #122a5c); }
.ck-back-starfield { --ck-back: radial-gradient(circle at 30% 28%, #fff 0 0.8px, transparent 1.4px) 0 0 / 13px 15px, radial-gradient(circle at 70% 64%, rgba(255,255,255,0.75) 0 0.6px, transparent 1.2px) 0 0 / 17px 11px, radial-gradient(circle at 50% 40%, rgba(120,170,255,0.35), transparent 70%), linear-gradient(170deg, #121c46, #070b22); }
.ck-back-nebula { --ck-back: radial-gradient(circle at 40% 40%, #fff 0 0.7px, transparent 1.3px) 0 0 / 15px 13px, radial-gradient(circle at 28% 30%, rgba(214,92,220,0.9), transparent 52%), radial-gradient(circle at 72% 72%, rgba(60,140,255,0.9), transparent 55%), radial-gradient(circle at 70% 25%, rgba(255,120,150,0.55), transparent 40%), #241048; }
.ck-back-orbit { --ck-back: radial-gradient(circle at 50% 50%, #ffd166 0 7%, transparent 7.5%), repeating-radial-gradient(circle at 50% 50%, transparent 0 9%, rgba(255,209,102,0.85) 9% 10.5%, transparent 10.5% 17%), linear-gradient(160deg, #1a2d63, #0d1838); }
.ck-back-aurora { --ck-back: repeating-linear-gradient(100deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 8px), linear-gradient(165deg, #062b33 0%, #0d6656 34%, #46e0a6 48%, #1b8f78 58%, #0a3c4a 80%, #05202a 100%); }
.ck-back-ruby { --ck-back: repeating-linear-gradient(60deg, rgba(255,255,255,0.11) 0 1.2px, transparent 1.2px 8px), repeating-linear-gradient(-60deg, rgba(255,255,255,0.11) 0 1.2px, transparent 1.2px 8px), radial-gradient(circle at 50% 40%, #c3203f, #6b0a1f 75%); }
.ck-back-comet { --ck-back: radial-gradient(circle at 74% 26%, #fff6d5 0 6%, #ffbf5a 9%, transparent 16%), linear-gradient(225deg, transparent 0 36%, rgba(255,170,80,0.85) 40%, rgba(255,120,60,0.4) 47%, transparent 55%), radial-gradient(circle at 30% 70%, #fff 0 0.7px, transparent 1.3px) 0 0 / 12px 14px, linear-gradient(170deg, #12345c, #081a33); }
.ck-back-gold { --ck-back: repeating-linear-gradient(45deg, rgba(90,60,0,0.16) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(90,60,0,0.16) 0 1px, transparent 1px 6px), linear-gradient(135deg, #7a5410 0%, #e9c467 28%, #a77a1e 50%, #f6df9c 72%, #7a5410 100%); }

/* ---- tables ---- */
.ck-root, .ck-table-ocean { --ck-felt: radial-gradient(ellipse at 50% 18%, #1d5873, #0c2a40 70%, #081e30); --ck-edge: #2d5f7a; --ck-slot: rgba(255,255,255,0.16); }
.ck-table-felt { --ck-felt: radial-gradient(ellipse at 50% 22%, #2c7d4f, #12502f 68%, #0b3a22); --ck-edge: #2f7a4f; --ck-slot: rgba(255,255,255,0.18); }
.ck-table-midnight { --ck-felt: radial-gradient(ellipse at 50% 15%, #2f2858, #15112c 68%, #0b0919); --ck-edge: #3b3470; --ck-slot: rgba(255,255,255,0.15); }
.ck-table-sunset { --ck-felt: radial-gradient(ellipse at 50% 0%, #b85a3c, #6a2547 55%, #2c1034); --ck-edge: #8a3a52; --ck-slot: rgba(255,255,255,0.2); }
.ck-table-ice { --ck-felt: radial-gradient(ellipse at 50% 15%, #3d86a6, #1c4e6b 68%, #123a52); --ck-edge: #4b8fb0; --ck-slot: rgba(255,255,255,0.22); }
.ck-table-wine { --ck-felt: radial-gradient(ellipse at 50% 18%, #6f2240, #3c1024 68%, #270916); --ck-edge: #7a2c4a; --ck-slot: rgba(255,255,255,0.17); }
.ck-felt { background: radial-gradient(rgba(255,255,255,0.025) 0.8px, transparent 1px) 0 0 / 4px 4px, var(--ck-felt); border: 1px solid var(--ck-edge); }

/* ---- bar ---- */
.ck-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 0 0 10px; }
.ck-info { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #8aa3c4; font-variant-numeric: tabular-nums; min-width: 0; }
.ck-stat { white-space: nowrap; }
.ck-stat b { color: #fff; margin-left: 3px; }
.ck-tools { display: flex; align-items: center; gap: 6px; }
.ck-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 11px; border-radius: 999px; border: 1px solid #1c2b4a; background: #0b1328; color: #8aa3c4; font: inherit; font-size: 13px; cursor: pointer; touch-action: manipulation; transition: border-color .15s; white-space: nowrap; }
.ck-chip b { color: #ffd166; font-weight: 800; }
.ck-btn { min-height: 40px; background: #0b1328; color: #dfe9ff; border: 1px solid #1c2b4a; border-radius: 9px; padding: 0 13px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; touch-action: manipulation; transition: border-color .15s, background-color .15s, opacity .15s, transform .1s; white-space: nowrap; }
.ck-btn-icon { width: 40px; padding: 0; display: inline-grid; place-items: center; }
.ck-btn-icon svg { width: 19px; height: 19px; }
@media (hover: hover) { .ck-btn:hover:not(:disabled), .ck-chip:hover { border-color: #55d6ff; } .ck-btn-primary:hover:not(:disabled) { background: #ffe08a; border-color: #ffe08a; } }
.ck-btn:active:not(:disabled), .ck-chip:active { transform: scale(0.96); }
.ck-btn:disabled { opacity: 0.4; cursor: default; }
.ck-btn-primary { background: #ffd166; color: #1a1200; border-color: #ffd166; }
.ck-btn:focus-visible, .ck-chip:focus-visible { outline: 2px solid #55d6ff; outline-offset: 2px; }
.ck-btn.ck-busy { position: relative; color: transparent; }
.ck-btn.ck-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #55d6ff; border-right-color: transparent; animation: ck-spin .7s linear infinite; }
.ck-btn .ck-count { display: inline-block; min-width: 18px; margin-left: 5px; padding: 1px 5px; border-radius: 999px; background: #ffd166; color: #1a1200; font-size: 11.5px; font-weight: 800; }

/* ---- toast, status ---- */
.ck-toast { position: absolute; left: 50%; top: 10px; z-index: 66; max-width: calc(100% - 24px); transform: translate(-50%, -6px); background: #f4f7fb; color: #0b1328; font-weight: 750; font-size: 13.5px; line-height: 1.3; padding: 8px 15px; border-radius: 999px; pointer-events: none; opacity: 0; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.ck-toast.show { animation: ck-toast 2.6s ease forwards; }
.ck-toast.warn { background: #ffd166; color: #1a1200; }
.ck-toast.gift { background: linear-gradient(90deg, #ffd166, #ff9f6b); color: #1a1200; }
.ck-status { min-height: 1.4em; margin: 8px 2px 0; font-size: 13px; color: #8aa3c4; text-align: center; }
.ck-status.warn { color: #ffd166; }
.ck-help { color: #8aa3c4; font-size: 12px; line-height: 1.55; margin: 6px 0 0; }
.ck-help kbd { background: #16213a; color: #bfe9ff; border-radius: 3px; padding: 0 5px; font-family: inherit; font-size: 11.5px; }
@media (hover: none) { .ck-keys { display: none; } }

/* ---- sheets ---- */
.ck-scrim { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(2,4,10,0.64); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: ck-fade .2s ease; }
.ck-sheet { position: relative; width: 100%; max-width: 420px; max-height: calc(100% - 8px); overflow: auto; overscroll-behavior: contain; background: #0d1630; border: 1px solid #22345a; border-radius: 18px; padding: 22px 20px 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); color: #dfe9ff; animation: ck-pop .3s cubic-bezier(.2,1.2,.4,1); -webkit-user-select: none; user-select: none; }
.ck-sheet:focus { outline: none; }
.ck-sheet h3 { margin: 0 40px 4px 0; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.ck-sheet p { margin: 0 0 12px; color: #8aa3c4; font-size: 14px; line-height: 1.5; }
.ck-sheet .ck-lead { color: #dfe9ff; font-size: 15px; }
.ck-x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #8aa3c4; font-size: 24px; line-height: 1; cursor: pointer; }
.ck-x:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ck-x:focus-visible { outline: 2px solid #55d6ff; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ck-actions .ck-btn { flex: 1 1 0; min-width: max-content; min-height: 44px; }
.ck-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 4px; }
.ck-grid div { background: #0b1328; border: 1px solid #1c2b4a; border-radius: 10px; padding: 8px 4px; text-align: center; min-width: 0; }
.ck-grid b { display: block; font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; }
.ck-grid span { display: block; font-size: 11px; line-height: 1.25; margin-top: 2px; color: #8aa3c4; }
.ck-h4 { margin: 18px 0 8px; font-size: 12.5px; font-weight: 800; color: #8aa3c4; text-transform: uppercase; letter-spacing: 0.06em; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #16213a; font-size: 14px; }
.ck-row > span { min-width: 0; }
.ck-row small { display: block; color: #6f88aa; font-size: 12px; margin-top: 2px; }
.ck-seg { display: inline-flex; background: #0b1328; border: 1px solid #1c2b4a; border-radius: 9px; padding: 2px; flex: none; }
.ck-seg button { min-height: 36px; min-width: 40px; border: 0; background: transparent; color: #8aa3c4; font: inherit; font-size: 13px; font-weight: 700; padding: 0 11px; border-radius: 7px; cursor: pointer; touch-action: manipulation; }
.ck-seg button[aria-checked="true"] { background: #1c2b4a; color: #fff; }
.ck-seg button:focus-visible { outline: 2px solid #55d6ff; }
.ck-link { background: none; border: 0; padding: 4px 0; color: #55d6ff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ck-fine { font-size: 12.5px !important; color: #6f88aa !important; margin-top: 10px !important; }
.ck-tabs { display: flex; gap: 4px; margin: 12px 0 0; background: #0b1328; border: 1px solid #1c2b4a; border-radius: 10px; padding: 3px; }
.ck-tabs button { flex: 1 1 0; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: #8aa3c4; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ck-tabs button[aria-selected="true"] { background: #1c2b4a; color: #fff; }
.ck-num { display: flex; gap: 8px; margin: 12px 0 6px; }
.ck-num input { flex: 1 1 auto; min-width: 0; min-height: 46px; background: #060b18; color: #fff; border: 1px solid #2a3d63; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; -webkit-user-select: text; user-select: text; }
.ck-num input:focus { outline: none; border-color: #55d6ff; box-shadow: 0 0 0 3px rgba(85,214,255,0.2); }
.ck-num input::placeholder { font-size: 16px; font-weight: 600; color: #6c7f9e; }
.ck-num .ck-btn { min-height: 46px; }
.ck-note { min-height: 1.5em; font-size: 13px !important; }
.ck-note.warn { color: #ffd166 !important; }

/* ---- leaderboard list (daily deals) ---- */
.ck-board { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.ck-board li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; }
.ck-board li:nth-child(odd) { background: rgba(255,255,255,0.03); }
.ck-board li.me { background: rgba(255,209,102,0.12); box-shadow: inset 0 0 0 1px rgba(255,209,102,0.35); }
.ck-board .rk { width: 26px; text-align: right; color: #8aa3c4; font-variant-numeric: tabular-nums; font-weight: 800; }
.ck-board .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #dfe9ff; }
.ck-board .vl { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.ck-board-note { font-size: 13px !important; color: #8aa3c4 !important; margin: 8px 0 0 !important; }

/* ---- looks picker ---- */
.ck-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ck-look { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 3px 6px; border-radius: 11px; border: 1px solid #1c2b4a; background: #0b1328; color: #dfe9ff; font: inherit; cursor: pointer; min-width: 0; touch-action: manipulation; }
.ck-look[aria-pressed="true"] { border-color: #ffd166; box-shadow: 0 0 0 1px #ffd166; }
.ck-look:focus-visible { outline: 2px solid #55d6ff; outline-offset: 2px; }
.ck-look.ck-locked { cursor: default; }
.ck-look.ck-locked .ck-swatch > :not(.ck-lock) { filter: grayscale(0.85) brightness(0.55); }
.ck-swatch { position: relative; width: 44px; height: 60px; border-radius: 6px; display: block; --cw: 44px; --ch: 60px; }
.ck-look-table .ck-swatch { width: 60px; height: 44px; --cw: 60px; }
.ck-look-table .ck-mini { position: absolute; inset: 0; border-radius: 7px; background: radial-gradient(rgba(255,255,255,0.025) 0.8px, transparent 1px) 0 0 / 4px 4px, var(--ck-felt); box-shadow: inset 0 0 0 1px var(--ck-edge); }
.ck-swatch .ck-card { width: 44px; height: 60px; border-radius: 5px; }
.ck-lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.ck-lock svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)); }
.ck-look-name { font-size: 12px; font-weight: 800; line-height: 1.15; text-align: center; }
.ck-look-how { font-size: 10.5px; line-height: 1.2; color: #8aa3c4; text-align: center; min-height: 2.4em; }

@keyframes ck-fade { from { opacity: 0; } }
@keyframes ck-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes ck-spin { to { transform: rotate(360deg); } }
@keyframes ck-shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
@keyframes ck-toast { 0% { opacity: 0; transform: translate(-50%, -6px); } 7%, 84% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes ck-pulse { 50% { box-shadow: 0 0 0 3px rgba(85,214,255,0.95), 0 0 16px 4px rgba(85,214,255,0.55); } }
.ck-shake { animation: ck-shake .32s ease; }
@media (max-width: 560px) {
  .ck-bar { margin-bottom: 8px; }
  .ck-info { gap: 9px; }
  .ck-tools { flex: 1 1 auto; justify-content: flex-end; }
  .ck-btn { padding: 0 11px; }
  .ck-help { font-size: 11.5px; padding: 0 4px; }
  .ck-looks { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
@media (max-width: 380px) { .ck-btn { padding: 0 9px; font-size: 13px; } .ck-info { gap: 7px; } .ck-lbl { display: none; } }
@media (prefers-reduced-motion: reduce) { .ck-scrim, .ck-sheet, .ck-shake { animation: none; } .ck-toast.show { animation-duration: 2.6s; } }
