/* ==========================================================================
   Game: Word Fuse (slug spelltrix)
   Self-contained — every class is prefixed .sx-. The game panel is a dark
   "stage" in both site themes; honeycomb letters in warm amber.
   ========================================================================== */

.sx {
  --sx-bg: #14162b;
  --sx-card: rgba(255, 255, 255, .06);
  --sx-card-hover: rgba(255, 255, 255, .11);
  --sx-line: rgba(255, 255, 255, .13);
  --sx-text: #fff;
  --sx-sub: rgba(255, 255, 255, .72);
  --sx-good: #19c28f;
  --sx-bad: #ff5c8a;
  --sx-amber: #ffc53d;
  --sx-amber-deep: #f29a12;
  --sx-cell: #2a2d52;
  --sx-cell-hover: #363a68;
  --sx-accent: var(--hot);

  position: relative;
  margin: 10px 0 40px;
  padding: 36px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(255, 181, 40, .22), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(91, 61, 245, .42), transparent 60%),
    var(--sx-bg);
  color: var(--sx-text);
  isolation: isolate;
  min-height: 560px;
}
:root[data-theme="dark"] .sx { border: 1px solid var(--line); }

/* honeycomb motif (decorative) */
.sx::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
  width: 420px;
  height: 340px;
  opacity: .16;
  background: url("../../svg/games/spelltrix/honeycomb.svg") repeat;
  -webkit-mask-image: radial-gradient(farthest-side at 100% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(farthest-side at 100% 0%, #000 20%, transparent 100%);
}

.sx-screen[hidden] { display: none !important; }
.sx-screen { animation: sx-fade .35s var(--ease); }
@keyframes sx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sx-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared buttons ---------- */
.sx-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--sx-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--sx-text);
  font: 600 .875rem/1.2 var(--font);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.sx-ghost:hover:not(:disabled) { background: var(--sx-card-hover); }
.sx-ghost:disabled { opacity: .4; cursor: not-allowed; }
.sx-ghost--danger { color: var(--sx-sub); }
.sx-ghost--danger.is-confirm { border-color: var(--sx-bad); color: var(--sx-bad); }
.sx-ghost--accent { border-color: rgba(255, 197, 61, .6); color: var(--sx-amber); }
.sx-ghost--sm { min-height: 36px; padding: 6px 14px; font-size: .8rem; }
.sx-ghost .sx-ico--off { display: none; }
.sx-ghost.is-off .sx-ico--on { display: none; }
.sx-ghost.is-off .sx-ico--off { display: block; }

.sx-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--sx-line);
  border-radius: 50%;
  background: var(--sx-card);
  color: var(--sx-text);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.sx-icon-btn:hover { background: var(--sx-card-hover); }

.sx .btn-pill { min-height: 46px; padding: 11px 24px; }
.sx .btn-pill:not(.btn-pill--hot) { background: var(--brand-soft); color: var(--night); }
.sx button:focus-visible { outline: 3px solid var(--sx-accent); outline-offset: 2px; }

/* ==========================================================================
   Home
   ========================================================================== */
.sx-home__head { display: flex; align-items: flex-start; gap: 22px; max-width: 760px; }

/* mini honeycomb logo */
.sx-logo {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--sx-amber), var(--sx-amber-deep));
  box-shadow: 0 12px 30px rgba(242, 154, 18, .35);
}
.sx-logo span {
  position: absolute;
  width: 18px;
  height: 16px;
  background: rgba(20, 22, 43, .82);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  left: calc(50% - 9px + var(--x, 0px));
  top: calc(50% - 8px + var(--y, 0px));
  animation: sx-blink 2.4s ease-in-out infinite;
}
.sx-logo span.is-mid { background: #fff; }
.sx-logo span:nth-child(1) { --x: 0px; --y: -17px; }
.sx-logo span:nth-child(2) { --x: 14px; --y: -8.5px; animation-delay: .3s; }
.sx-logo span:nth-child(3) { --x: 14px; --y: 8.5px; animation-delay: .6s; }
.sx-logo span:nth-child(5) { --x: 0px; --y: 17px; animation-delay: .9s; }
.sx-logo span:nth-child(6) { --x: -14px; --y: 8.5px; animation-delay: 1.2s; }
.sx-logo span:nth-child(7) { --x: -14px; --y: -8.5px; animation-delay: 1.5s; }
@keyframes sx-blink { 50% { opacity: .55; } }

.sx-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 197, 61, .14);
  color: var(--sx-amber);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sx-title { margin: 0 0 8px; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
.sx-lead { margin: 0; color: var(--sx-sub); }

.sx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0 22px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sx-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border: 1px solid var(--sx-line); border-radius: var(--radius-pill); background: var(--sx-card); }
.sx-chip__label { color: var(--sx-sub); font-size: .78rem; font-weight: 500; }
.sx-chip strong { color: var(--sx-amber); font-size: 1rem; }
.sx-toolbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* daily card */
.sx-daily {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 197, 61, .45);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, rgba(255, 197, 61, .18), rgba(255, 255, 255, .04) 60%);
  color: var(--sx-text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.sx-daily:hover { transform: translateY(-2px); background-color: rgba(255, 255, 255, .04); }
.sx-daily__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: var(--sx-amber);
  color: var(--night);
}
.sx-daily__badge .sx-ico { width: 26px; height: 26px; }
.sx-daily__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sx-daily__kicker { color: var(--sx-amber); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sx-daily__name { font-size: 1.15rem; font-weight: 700; }
.sx-daily__meta { color: var(--sx-sub); font-size: .85rem; }
.sx-daily__go {
  flex: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--hot);
  color: var(--night);
  font-weight: 700;
  font-size: .9rem;
}

.sx-subtitle { margin: 0 0 14px; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-sub); }

.sx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sx-pack {
  padding: 16px;
  border: 1px solid var(--sx-line);
  border-radius: var(--radius-md);
  background: var(--sx-card);
}
.sx-pack.is-cleared { border-color: rgba(25, 194, 143, .45); }
.sx-pack.is-locked { opacity: .55; }
.sx-pack__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sx-pack__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--sx-amber);
  color: var(--night);
  font-size: 1.1rem;
  font-weight: 700;
}
.sx-pack.is-locked .sx-pack__num { background: rgba(255, 255, 255, .14); color: var(--sx-text); }
.sx-pack__info { flex: 1; min-width: 0; }
.sx-pack__name { margin: 0; font-size: 1rem; font-weight: 700; color: var(--sx-text); }
.sx-pack__blurb { margin: 2px 0 0; color: var(--sx-sub); font-size: .8rem; line-height: 1.4; }
.sx-pack__stars { flex: none; white-space: nowrap; }

.sx-pack__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sx-puz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 4px 8px;
  border: 1px solid var(--sx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--sx-text);
  font-family: var(--font);
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.sx-puz:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 197, 61, .6); background: var(--sx-card-hover); }
.sx-puz:disabled { cursor: not-allowed; }
.sx-puz.is-started { border-color: rgba(255, 197, 61, .35); }
.sx-puz.is-starred { border-color: rgba(25, 194, 143, .5); }
.sx-puz__top { display: flex; align-items: center; gap: 5px; }
.sx-puz__n { color: var(--sx-sub); font-size: .72rem; font-weight: 700; }
.sx-puz__centre {
  display: grid;
  place-items: center;
  width: 26px;
  height: 23px;
  background: var(--sx-amber);
  color: var(--night);
  font-size: .82rem;
  font-weight: 800;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.sx-puz__rank { max-width: 100%; overflow: hidden; color: var(--sx-sub); font-size: .66rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sx-puz__stars .sx-star { font-size: .72rem; }

.sx-star { color: rgba(255, 255, 255, .22); font-size: 1.05rem; line-height: 1; }
.sx-star.is-on { color: var(--hot); text-shadow: 0 0 12px rgba(255, 216, 77, .5); }

.sx-noscript { margin: 16px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 92, 138, .15); }

/* ==========================================================================
   Play
   ========================================================================== */
.sx-play { position: relative; }
.sx-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 14px; }
.sx-hud__stage { padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255, 197, 61, .14); color: var(--sx-amber); font-size: .8rem; font-weight: 700; }
.sx-hud__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.sx-stat { display: flex; flex-direction: column; line-height: 1.2; }
.sx-stat__label { color: var(--sx-sub); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sx-stat strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* rank bar */
.sx-rank { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sx-rank__name { min-width: 96px; color: var(--sx-amber); font-weight: 700; }
.sx-rank__track { position: relative; flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.sx-rank__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sx-amber-deep), var(--sx-amber)); transition: width .5s var(--ease); }
.sx-rank__dots { position: absolute; inset: 0; }
.sx-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--sx-bg);
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.sx-dot.is-on { background: var(--sx-amber); transform: scale(1.15); }
.sx-dot:last-child { margin-left: -12px; }
.sx-rank__next { min-width: 110px; color: var(--sx-sub); font-size: .78rem; text-align: right; }

.sx-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; align-items: start; }

.sx-board { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.sx-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: .06em;
}
.sx-entry__text { display: inline-flex; flex-wrap: wrap; justify-content: center; overflow-wrap: anywhere; }
.sx-entry__text .is-centre { color: var(--sx-amber); }
.sx-entry__text .is-bad { color: rgba(255, 255, 255, .35); }
.sx-caret { display: inline-block; width: 3px; height: 1.15em; margin-left: 3px; border-radius: 2px; background: var(--sx-amber); animation: sx-caret 1s steps(1) infinite; }
@keyframes sx-caret { 50% { opacity: 0; } }
.sx-entry.is-empty::before { content: attr(data-placeholder); color: rgba(255, 255, 255, .3); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.sx-entry.is-empty .sx-caret { display: none; }
.sx-found__empty { grid-column: 1 / -1; color: var(--sx-sub); font-size: .85rem; border: 0 !important; }
.sx-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--sx-amber); color: var(--night); font-size: .75rem; font-weight: 800; }
.sx-entry.is-shake { animation: sx-shake .4s ease; }
@keyframes sx-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.sx-toast {
  min-height: 32px;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  color: var(--night);
  font-size: .85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.sx-toast.is-show { opacity: 1; transform: none; }
.sx-toast.is-good { background: #fff; }
.sx-toast.is-bad { background: var(--sx-bad); color: #3a0716; }
.sx-toast.is-pangram { background: var(--sx-amber); }
.sx-toast.is-rank { background: var(--brand-soft); }

/* honeycomb: flat-top hexes */
.sx-hive {
  --hw: 92px;                       /* hex width */
  --hh: calc(var(--hw) * .866);     /* hex height */
  --gap: 1.07;
  position: relative;
  width: calc(var(--hw) * (1 + 1.5 * var(--gap)));
  height: calc(var(--hh) * (1 + 2 * var(--gap)));
  margin: 4px auto 22px;
  touch-action: manipulation;
}
.sx-cell {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--hw);
  height: var(--hh);
  margin: calc(var(--hh) / -2) 0 0 calc(var(--hw) / -2);
  padding: 0;
  border: 0;
  background: var(--sx-cell);
  color: var(--sx-text);
  font: 700 1.6rem/1 var(--font);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .15s var(--ease), transform .25s var(--ease);
  transform: translate(var(--tx, 0), var(--ty, 0));
}
@media (hover: hover) { .sx-cell:hover { background: var(--sx-cell-hover); } .sx-cell.is-centre:hover { background: #ffd36a; } }
.sx-cell.is-centre { background: var(--sx-amber); color: var(--night); }
.sx .sx-cell:focus-visible { outline: none; background: #fff; color: var(--night); }
.sx-cell.is-press { animation: sx-press .2s var(--ease); }
@keyframes sx-press { 50% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(.9); } }
.sx-cell[data-pos="1"] { --tx: 0px; --ty: calc(var(--hh) * var(--gap) * -1); }
.sx-cell[data-pos="2"] { --tx: calc(var(--hw) * .75 * var(--gap)); --ty: calc(var(--hh) * var(--gap) * -.5); }
.sx-cell[data-pos="3"] { --tx: calc(var(--hw) * .75 * var(--gap)); --ty: calc(var(--hh) * var(--gap) * .5); }
.sx-cell[data-pos="4"] { --tx: 0px; --ty: calc(var(--hh) * var(--gap)); }
.sx-cell[data-pos="5"] { --tx: calc(var(--hw) * -.75 * var(--gap)); --ty: calc(var(--hh) * var(--gap) * .5); }
.sx-cell[data-pos="6"] { --tx: calc(var(--hw) * -.75 * var(--gap)); --ty: calc(var(--hh) * var(--gap) * -.5); }
.sx-hive.is-shuffled .sx-cell:not(.is-centre) .sx-cell__ch { animation: sx-flip .35s var(--ease); }
@keyframes sx-flip { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.sx-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sx-ctrl {
  min-width: 104px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--sx-line);
  border-radius: var(--radius-pill);
  background: var(--sx-card);
  color: var(--sx-text);
  font: 600 .95rem/1 var(--font);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.sx-ctrl:hover { background: var(--sx-card-hover); }
.sx-ctrl:active { transform: scale(.96); }
.sx-ctrl--round { display: grid; place-items: center; min-width: 48px; width: 48px; padding: 0; }
.sx-ctrl--primary { border-color: transparent; background: var(--hot); color: var(--night); }
.sx-ctrl--primary:hover { background: #ffe27a; }
.sx-keys { margin: 14px 0 0; color: var(--sx-sub); font-size: .75rem; text-align: center; }

/* side panel */
.sx-side { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--sx-line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); }
.sx-side__title { margin: 0; font-size: .95rem; font-weight: 600; }
.sx-found {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  max-height: 260px;
  min-height: 60px;
  margin: 0;
  padding: 0 0 4px;
  overflow-y: auto;
  list-style: none;
  border-bottom: 1px solid var(--sx-line);
}
.sx-found li { padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); font-size: .9rem; overflow-wrap: anywhere; }
.sx-found li.is-pangram { color: var(--sx-amber); font-weight: 700; }
.sx-found li.is-new { animation: sx-new 1s var(--ease); }
@keyframes sx-new { from { background: rgba(255, 197, 61, .35); } to { background: transparent; } }

.sx-hints__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sx-hints__title { color: var(--sx-sub); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sx-hintlist { margin: 8px 0 0; padding: 0; list-style: none; }
.sx-hintlist li { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: .9rem; letter-spacing: .08em; }
.sx-hintlist strong { color: var(--sx-amber); }
.sx-hintlist em { margin-left: auto; color: var(--sx-sub); font-size: .72rem; font-style: normal; letter-spacing: 0; }
.sx-hintlist li.is-done { opacity: .55; text-decoration: line-through; }
.sx-side__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-side__actions .sx-ghost { flex: 1; }

/* pause */
.sx-play.is-paused .sx-layout,
.sx-play.is-paused .sx-rank { filter: blur(14px); pointer-events: none; user-select: none; }
.sx-paused { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; }
.sx-paused[hidden] { display: none; }
.sx-paused__card { max-width: 400px; padding: 28px; border: 1px solid var(--sx-line); border-radius: var(--radius-md); background: rgba(20, 22, 43, .95); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); text-align: center; }
.sx-paused__title { margin: 0 0 6px; font-size: 1.6rem; }
.sx-paused__card p { margin: 0 0 20px; color: var(--sx-sub); font-size: .9rem; }
.sx-paused__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sx-paused__actions [hidden] { display: none; }

/* ==========================================================================
   Results
   ========================================================================== */
.sx-result { max-width: 640px; margin: 0 auto; padding: 10px 0; text-align: center; }
.sx-result__stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.sx-star--big { font-size: clamp(3rem, 9vw, 4.25rem); opacity: 0; animation: sx-star-in .5s var(--ease) forwards; }
@keyframes sx-star-in { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
.sx-result__title { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.sx-result__new { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--hot); color: var(--night); font-size: .8rem; font-weight: 700; }
.sx-result__new[hidden] { display: none; }
.sx-result__text { margin: 0 auto 24px; max-width: 480px; color: var(--sx-sub); }
.sx-result__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; }
.sx-result__stats div { padding: 14px 8px; border: 1px solid var(--sx-line); border-radius: var(--radius-sm); background: var(--sx-card); }
.sx-result__stats dt { color: var(--sx-sub); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sx-result__stats dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sx-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sx-result__actions [hidden] { display: none; }

/* ==========================================================================
   How to play
   ========================================================================== */
.sx-guide { margin: 0 0 56px; }
.sx-guide .section-head__title { margin-bottom: 22px; }
.sx-guide__item { height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.sx-guide__item h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.sx-guide__item p { margin: 0; color: var(--sub); font-size: .9rem; }
.sx-guide__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--onbrand); font-weight: 700; }
.sx-guide__back { margin: 24px 0 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .sx-layout { grid-template-columns: 1fr; gap: 20px; }
  .sx-found { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 200px; }
}
@media (max-width: 767.98px) {
  .sx { padding: 24px 20px; min-height: 0; }
  .sx-result__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-hud__stats { margin-left: 0; order: 3; width: 100%; justify-content: space-between; }
  .sx-hud .sx-icon-btn { margin-left: auto; }
  .sx-packs { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .sx { margin-left: -4px; margin-right: -4px; padding: 22px 16px; border-radius: var(--radius-md); }
  .sx-home__head { flex-direction: column; gap: 16px; }
  .sx-logo { width: 60px; height: 60px; border-radius: 16px; }
  .sx-toolbar { flex-direction: column; align-items: stretch; }
  .sx-toolbar__actions .sx-ghost { flex: 1; }
  .sx-daily { padding: 14px; gap: 12px; }
  .sx-daily__badge { width: 44px; height: 44px; }
  .sx-daily__go { display: none; }
  .sx-pack__grid { gap: 6px; }
  .sx-hive { --hw: 84px; }
  .sx-rank { flex-wrap: wrap; gap: 8px 12px; }
  .sx-rank__track { order: 3; flex-basis: 100%; }
  .sx-rank__next { margin-left: auto; min-width: 0; }
  .sx-ctrl { min-width: 92px; padding: 10px 14px; }
  .sx-ctrl.sx-ctrl--round { min-width: 48px; padding: 0; }
  .sx-entry { min-height: 44px; }
  .sx-found { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-keys { display: none; }
}
@media (max-width: 359.98px) {
  .sx-hive { --hw: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-logo span, .sx-caret { animation: none; }
  .sx-screen, .sx-cell.is-press, .sx-entry.is-empty::before { content: attr(data-placeholder); color: rgba(255, 255, 255, .3); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.sx-entry.is-empty .sx-caret { display: none; }
.sx-found__empty { grid-column: 1 / -1; color: var(--sx-sub); font-size: .85rem; border: 0 !important; }
.sx-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--sx-amber); color: var(--night); font-size: .75rem; font-weight: 800; }
.sx-entry.is-shake, .sx-hive.is-shuffled .sx-cell__ch, .sx-found li.is-new { animation: none; }
  .sx-star--big { opacity: 1; animation: none; }
  .sx-cell, .sx-rank__fill, .sx-toast { transition: none; }
}
