/* Coming-soon practice tiles with an "Interested" button (coming-soon.js), on light practice pages. */
[data-coming] { --cs-ink: #141225; --cs-ink-2: #5b5878; --cs-line: #e3def5; --cs-violet: #6a4fe0; --cs-gold: #ffc83d; --cs-night: #140f2e;
  margin: 28px 0 8px; }
[data-coming][hidden] { display: none !important; }
.cs-head { margin-bottom: 14px; }
.cs-title { margin: 0; font: 800 clamp(20px, 2.2vw, 24px)/1.3 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif; color: var(--cs-ink); }
.cs-sub { margin: 4px 0 0; font-size: 14px; color: var(--cs-ink-2); }
.cs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cs-tile { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 14px 12px; background: repeating-linear-gradient(135deg, #faf9fe 0 10px, #f3f1fb 10px 20px);
  color: var(--cs-ink); outline: 1px dashed #cbc3ea; outline-offset: -1px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.cs-tile.cs-more { display: none; }
.cs-lock { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.cs-lock svg { width: 15px; height: 15px; fill: none; stroke: var(--cs-ink-2); stroke-width: 2; stroke-linecap: round; }
.cs-n { font: 800 28px/1 'Baloo 2', system-ui, sans-serif; color: #b9b3d6; }
.cs-name { font-weight: 800; font-size: 15px; }
.cs-soon { font-size: 12px; font-weight: 700; color: var(--cs-ink-2); letter-spacing: .04em; text-transform: uppercase; }
.cs-vote { margin-top: 8px; min-height: 40px; border: 0; cursor: pointer; font: 800 14px/1.2 'Be Vietnam Pro', system-ui, sans-serif; color: var(--cs-night); background: var(--cs-gold);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: transform .15s, filter .15s; }
.cs-vote:hover { transform: translateY(-2px); filter: brightness(1.04); }
.cs-vote:focus-visible { outline: 3px solid var(--cs-violet); outline-offset: 2px; }
.cs-vote.is-on { color: #fff; background: var(--cs-violet); }
.cs-vote:disabled { opacity: .6; cursor: wait; }
.cs-show { display: block; margin: 14px auto 0; min-height: 44px; padding: 0 20px; border: 1px solid var(--cs-line); background: #fff; color: var(--cs-ink);
  font: 800 14px/1 'Be Vietnam Pro', system-ui, sans-serif; cursor: pointer; border-radius: 12px; }
.cs-show:hover { border-color: var(--cs-violet); color: var(--cs-violet); }
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cs-tile { padding: 12px 10px 10px; }
  .cs-n { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .cs-vote { transition: none; } }

/* Mock exam paper carousel (ielts_papers.picker): 01–40 in one scrolling row, unpublished papers greyed. */
.mock-paper-carousel { position: relative; max-width: 1200px; margin: 16px auto; padding: 0 56px; box-sizing: border-box; }
body[data-mock-status="running"] .mock-paper-carousel { display: none !important; }
.mock-paper-carousel .mock-paper-picker { flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 !important; padding: 4px 2px !important; max-width: none !important; }
.mock-paper-carousel .mock-paper-picker::-webkit-scrollbar { display: none; }
.mock-paper-carousel .mock-paper-picker > * { flex: none; scroll-snap-align: start; white-space: nowrap; }
.mock-paper-picker .mock-paper-soon { border: 0 !important; border-radius: 0 !important; cursor: pointer; font-weight: 700; color: #9b98ad !important;
  background: #ecebf2 !important; box-shadow: inset 0 0 0 1px #dcdae6 !important; clip-path: var(--pg-bevel, none); transition: background .15s; }
.mock-paper-picker .mock-paper-soon:hover { background: #e2e0ec !important; color: #77748c !important; }
.mock-paper-picker .mock-paper-soon:focus-visible { outline: 3px solid #6a4fe0; outline-offset: 2px; }
.mpc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; cursor: pointer;
  font: 800 26px/1 system-ui, sans-serif; color: #140f2e; background: #fff; box-shadow: inset 0 0 0 1px #e3def5;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.mpc-prev { left: 0; } .mpc-next { right: 0; }
.mpc-arrow:hover:not(:disabled) { background: #56dadc; }
.mpc-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .mock-paper-carousel { padding: 0 48px; } .mpc-arrow { width: 40px; height: 40px; } }

/* "Coming soon" popup */
.cs-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(20, 15, 46, .62); }
.cs-modal-card { position: relative; width: min(440px, 100%); padding: 22px 22px 20px; text-align: center; color: #141225; background: #fff;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.cs-modal-art { width: 160px; height: auto; margin: 0 auto 4px; display: block; }
.cs-modal-title { margin: 0 0 8px; font: 800 24px/1.25 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif; }
.cs-modal-text { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: #4a4766; }
.cs-modal-actions { display: grid; gap: 10px; }
.cs-modal-actions .cs-vote { margin: 0; min-height: 48px; font-size: 16px; }
.cs-modal-back { display: grid; place-items: center; min-height: 44px; font-weight: 800; color: #6a4fe0; text-decoration: none; }
.cs-modal-back:hover { text-decoration: underline; }
.cs-modal-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #5b5878; }
/* page button resets (practice-game.css) must not strip the popup's vote button */
.cs-modal .cs-vote { background: #ffc83d !important; color: #140f2e !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.cs-modal .cs-vote.is-on { background: #6a4fe0 !important; color: #fff !important; }
