/* Spelling Bee — layout and look measured from the original game. */

:root {
  --bg-sb: #f7da21;          /* bee yellow */
  --bg-tile-sb: #e7e7e7;     /* outer hex */
  --stroke-tertiary: #dfdfdf;
  --progress: #ebebeb;
  --toast-error: #121212;
  --text: #121212;
  --text-subdued: #5a5a5a;
  --text-faded: #afafaf;
  --bg-page: #fff;
  --bg-hover: #f4f4f4;
  --scrim: rgba(255, 255, 255, 0.7);

  --font-ui: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Roboto Slab", "Rockwell", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font: 500 16px/1.25 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Welcome splash ---------- */

.sb-welcome {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sb);
  text-align: center;
  padding: 24px 16px;
  transition: opacity 300ms, transform 300ms;
}
.sb-welcome.leaving { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.sb-welcome-inner { max-width: 360px; display: flex; flex-direction: column; align-items: center; }
.sb-welcome-icon { width: 64px; height: 64px; margin-bottom: 18px; }
.sb-welcome-title {
  font: 800 2.75em/1 var(--font-title);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.sb-welcome-subtitle {
  font: 400 1.75em/1.2 var(--font-ui);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 320px;
}
.sb-welcome-button {
  min-width: 150px;
  height: 3em;
  padding: 0 32px;
  border: 0;
  border-radius: 1.5em;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-bottom: 28px;
}
.sb-welcome-button:hover { background: #333; }
.sb-welcome-date { font-weight: 700; font-size: 1em; margin-bottom: 4px; }
.sb-welcome-number { font-weight: 400; font-size: 0.875em; }

/* ---------- Header + toolbar ---------- */

.pz-game-title-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 36px 28px;
}
.pz-game-title-row { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 16px; }
.pz-game-title {
  font: 800 42px/1.05 var(--font-title);
  letter-spacing: -0.04em;
}
.pz-game-date { font: 300 28px/1.2 var(--font-ui); }
.pz-game-editor { font-size: 14px; font-weight: 400; margin-top: 10px; }

.pz-toolbar {
  border-top: 1px solid var(--stroke-tertiary);
  border-bottom: 1px solid var(--stroke-tertiary);
}
.pz-toolbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 55px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.pz-toolbar-button {
  background: none;
  border: 0;
  height: 100%;
  padding: 0 13px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.pz-toolbar-button:hover { background: var(--bg-hover); }
.pz-toolbar-button__more { font-size: 18px; }
.pz-caret {
  display: inline-block;
  margin-left: 6px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
}
.pz-dropdown { position: relative; height: 100%; }
.pz-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 1px);
  z-index: 50;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--stroke-tertiary);
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
}
.pz-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
}
.pz-dropdown-menu button:hover { background: var(--bg-hover); }

/* ---------- Main two-column layout ---------- */

.sb-content-box {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding-bottom: 40px;
}
.sb-status-box { width: 540px; padding: 18px 24px 0 0; }
.sb-controls-box {
  width: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  padding-top: 90px;
}
.sb-controls { width: 290px; display: flex; flex-direction: column; align-items: center; }

/* ---------- Progress bar ---------- */

.sb-progress {
  display: flex;
  align-items: center;
  height: 42px;
  cursor: pointer;
  padding-right: 12px;
}
.sb-progress-rank {
  font-size: 16px;
  font-weight: 700;
  min-width: 90px;
  padding-right: 12px;
  white-space: nowrap;
}
.sb-progress-bar { position: relative; flex: 1; height: 30px; display: flex; align-items: center; }
.sb-progress-line {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--progress);
  display: flex;
  align-items: center;
}
.sb-progress-dots { width: 100%; display: flex; justify-content: space-between; }
.sb-progress-dot { display: block; width: 0; position: relative; }
.sb-progress-dot::after {
  content: "";
  display: block;
  position: absolute;
  left: -4.5px;
  top: -4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--progress);
  transition: background-color 200ms 100ms;
}
.sb-progress-dot:last-child::after { border-radius: 0; }
.sb-progress-dot.completed::after { background: var(--bg-sb); }
.sb-progress-marker {
  width: 1.875em;
  height: 1.875em;
  position: absolute;
  top: 0;
  left: 0%;
  transform: translateX(-50%);
  transition: left 200ms;
}
.sb-progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-sb);
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: -0.03125em;
}
.sb-progress-marker.final .sb-progress-value { border-radius: 0; }

/* ---------- Word list ---------- */

.sb-wordlist-box {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
  min-height: 638px;
}
.sb-wordlist-heading-wrap { position: relative; }
.sb-wordlist-heading { height: 45px; overflow: hidden; position: relative; }
.sb-wordlist-summary,
.sb-recent-words-wrap {
  padding: 0 25px;
  position: absolute;
  left: 0;
  right: 0;
  height: 45px;
  display: flex;
  align-items: center;
  transition: 270ms;
}
.sb-wordlist-summary { font-size: 1em; white-space: nowrap; }
.sb-recent-words { display: flex; overflow: hidden; white-space: nowrap; padding-right: 40px; }
.sb-recent-words li { margin-right: 6px; text-transform: capitalize; }
.sb-recent-words li.pangram { font-weight: 700; }
.sb-placeholder-text { color: var(--text-faded); text-transform: none !important; }
.sb-toggle-expand {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  box-shadow: 0 0 20px 5px var(--bg-page);
  border-radius: 6px;
}
.sb-toggle-icon {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 250ms linear;
}
.sb-expanded .sb-toggle-icon { transform: translateY(3px) rotate(225deg); }

.sb-wordlist-window { padding: 0 25px 30px; }
.sb-wordlist-items-pag { column-count: 3; column-gap: 25px; padding-top: 12px; }
.sb-wordlist-items-pag > li {
  break-inside: avoid;
  padding: 4px 0 4px 1px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--stroke-tertiary);
}
.sb-anagram { text-transform: capitalize; font-size: 1em; font-weight: 500; }
.sb-anagram.pangram { font-weight: 700; }
.sb-anagram.new { animation: word-in 400ms ease-out; }
@keyframes word-in { from { background: #fdf3b7; } to { background: transparent; } }

/* Desktop: summary is the heading; recent words strip is hidden. */
@media (min-width: 768px) {
  .sb-wordlist-heading { height: 60px; }
  .sb-wordlist-summary, .sb-recent-words-wrap { height: 60px; }
  .sb-recent-words-wrap { opacity: 0; pointer-events: none; }
  .sb-wordlist-heading-wrap { pointer-events: none; }
}

/* ---------- Input ---------- */

.sb-hive-input {
  position: relative;
  width: 100%;
  height: 1.25em;
  font-size: 2em;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  text-rendering: optimizeLegibility;
  margin-bottom: 26px;
  white-space: nowrap;
}
.sb-hive-input-content {
  height: 100%;
  display: inline-block;
  position: relative;
  min-width: 1px;
}
.sb-hive-input-content::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 1.25em;
  background: var(--bg-sb);
  animation: blink 1000ms step-end infinite;
}
.sb-hive-input-content.non-empty::after { left: auto; right: -4px; }
.sb-hive-input-content.has-error { animation: shake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.sb-hive-input-placeholder {
  font-weight: 400;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.sb-hive-input-content.non-empty .sb-hive-input-placeholder,
.sb-hive-input-content:has(.sb-hive-input-placeholder)::after { display: none; }
.sb-input-bright { color: var(--bg-sb); }
.sb-input-invalid { color: var(--stroke-tertiary); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ---------- Messages ---------- */

.sb-message-box {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  pointer-events: none;
  z-index: 5;
}
.sb-message {
  display: inline-block;
  position: relative;
  padding: 8px 14px;
  border-radius: 3px;
  font-size: 0.875em;
  line-height: 1.2;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--stroke-tertiary);
  min-width: 65px;
  white-space: nowrap;
  opacity: 0;
}
.success-message .sb-message { animation: pop 780ms cubic-bezier(0.375, 0.25, 0.315, 0.89) both; }
.error-message .sb-message {
  background: var(--toast-error);
  color: #fff;
  border: 0;
  animation: fade-show 1100ms cubic-bezier(0.375, 0.25, 0.315, 0.89) both;
}
.pangram-message .sb-message { background: var(--bg-sb); border: 0; font-weight: 700; }
.sb-message-points {
  position: absolute;
  bottom: 8px;
  right: -36px;
  font-weight: 700;
  font-size: 0.875em;
  opacity: 0;
  animation: float 790ms cubic-bezier(0.375, 0.25, 0.315, 0.89) both;
}
.pangram-message .sb-message-points { right: -40px; }

@keyframes pop {
  0% { opacity: 0; transform: translateY(14px) scale(0.85); }
  15% { opacity: 1; transform: translateY(0) scale(1.03); }
  25% { transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes fade-show {
  0% { opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes float {
  0% { opacity: 0; transform: translateY(10px); }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translateY(-14px); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* ---------- Hive ---------- */

.sb-hive { width: 90%; margin: 0 auto 26px; }
.hive { position: relative; width: 100%; padding-bottom: 103.92304845413263%; }
.hive-cell {
  position: absolute;
  top: 33.3333%;
  left: 30%;
  width: 40%;
  height: 33.3333%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  clip-path: polygon(0% 50%, 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%);
}
.hive-cell svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hive-cell:focus { outline: none; }
.hive-cell .cell-fill {
  fill: var(--bg-tile-sb);
  stroke: var(--bg-page);
  stroke-width: 7.5px;
  transition: 100ms;
  transform-origin: center;
  transform-box: fill-box;
}
.hive-cell.center .cell-fill { fill: var(--bg-sb); }
.hive-cell:active .cell-fill,
.hive-cell.pressed .cell-fill { transform: scale(0.86); }
.cell-letter {
  font-weight: 700;
  font-size: 1.875em;
  text-anchor: middle;
  text-transform: uppercase;
  pointer-events: none;
  fill: var(--text);
  transition: opacity 200ms;
}
.hive.shuffling .hive-cell.outer .cell-letter { opacity: 0; }

.hive-cell:nth-child(1) { transform: translate(0, 0); }
.hive-cell:nth-child(2) { transform: translate(-75%, -50%); }
.hive-cell:nth-child(3) { transform: translate(0, -100%); }
.hive-cell:nth-child(4) { transform: translate(75%, -50%); }
.hive-cell:nth-child(5) { transform: translate(75%, 50%); }
.hive-cell:nth-child(6) { transform: translate(0, 100%); }
.hive-cell:nth-child(7) { transform: translate(-75%, 50%); }

/* ---------- Action buttons ---------- */

.hive-actions { display: flex; justify-content: center; align-items: center; }
.hive-action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5.5em;
  min-width: 5.5em;
  height: 3em;
  margin: 0 8px;
  padding: 0;
  background: transparent;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  border: 1px solid var(--stroke-tertiary);
  border-radius: 2.5em;
  cursor: pointer;
  user-select: none;
  transition: background-color 100ms;
}
.hive-action:active, .hive-action.pressed { background: var(--stroke-tertiary); }
.hive-action__shuffle { width: 3em; min-width: 3em; }
.hive-action__shuffle svg { width: 60%; height: 60%; }

/* ---------- Modal ---------- */

.sb-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms;
}
.sb-modal-open .sb-modal-scrim { opacity: 1; pointer-events: all; }
.sb-modal-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  transform: translateY(40px);
  opacity: 0;
  transition: 150ms;
}
.sb-modal-open .sb-modal-wrapper { transform: none; opacity: 1; }
.sb-modal-frame {
  position: relative;
  width: 100%;
  max-width: 530px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
}
.sb-modal-frame.wide { max-width: 680px; }
.sb-modal-top { display: flex; justify-content: flex-end; min-height: 42px; align-items: flex-end; }
.sb-modal-close {
  background: none;
  border: 0;
  cursor: pointer;
  font: 500 1.75em/1 var(--font-ui);
  margin-right: 20px;
  padding: 0;
}
.sb-modal-content {
  padding: 0 32px 32px;
  overflow-y: auto;
  font: 500 1em/1.5 var(--font-ui);
  text-align: left;
}
.sb-modal-content > * + * { margin-top: 12.5px; }
.sb-modal-title { font: 800 28px/1.15 var(--font-title); letter-spacing: -0.03em; }
.sb-modal-sub { font-weight: 400; }
.sb-modal-letters { font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.sb-modal-letters .center { color: #c4a90b; }
.sb-modal-button {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 40px;
  height: 40px;
  padding: 0 24px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.sb-modal-button.primary { background: var(--text); color: #fff; border-color: var(--text); }
.sb-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }
.sb-modal-content ul.bullets { list-style: disc; padding-left: 20px; }
.sb-modal-content ul.bullets li + li { margin-top: 4px; }
.sb-modal-content h3 { font-size: 1em; font-weight: 700; margin-top: 20px; }

/* Rankings */
.sb-ranks { position: relative; margin-top: 24px !important; }
.sb-ranks-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  padding: 0 18px 0 44px;
  margin-bottom: 6px;
}
.sb-rank {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 18px 0 44px;
}
.sb-rank::before {
  /* vertical rail */
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--progress);
}
.sb-rank:first-of-type::before { top: 50%; }
.sb-rank:last-child::before { bottom: 50%; }
.sb-rank.reached::before { background: var(--bg-sb); }
.sb-rank-dot {
  position: absolute;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--progress);
  z-index: 1;
}
.sb-rank.genius .sb-rank-dot, .sb-rank.queen .sb-rank-dot { border-radius: 0; }
.sb-rank.reached .sb-rank-dot { background: var(--bg-sb); }
.sb-rank-name { white-space: nowrap; }
.sb-rank-leader { flex: 1; height: 1px; background: var(--stroke-tertiary); margin: 0 12px; }
.sb-rank-score { min-width: 2ch; text-align: right; }
.sb-rank.reached:not(.current) { color: var(--text-faded); }
.sb-rank.current {
  height: auto;
  min-height: 48px;
  margin: 2px -12px;
  padding: 6px 30px 6px 56px;
  background: var(--bg-sb);
  border-radius: 24px;
}
.sb-rank.current::before, .sb-rank.current .sb-rank-dot { display: none; }
.sb-rank.current .sb-rank-leader { visibility: hidden; }
.sb-rank.current .sb-rank-name { font-weight: 700; }
.sb-rank-current-score {
  position: absolute;
  left: 12px;
  width: 30px;
  text-align: center;
  font-weight: 700;
}
.sb-rank-detail { display: block; font-size: 12px; font-weight: 400; }

/* Hints */
.sb-hints-stats { font-weight: 400; }
.sb-hints-stats b { font-weight: 700; }
.sb-hints-table { border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 16px !important; }
.sb-hints-table th, .sb-hints-table td {
  padding: 4px 8px;
  text-align: center;
  border-bottom: 1px solid var(--stroke-tertiary);
  min-width: 34px;
}
.sb-hints-table th { font-weight: 700; }
.sb-hints-table th:first-child { text-align: left; text-transform: uppercase; }
.sb-hints-table td.zero { color: var(--stroke-tertiary); }
.sb-hints-table td.done { color: var(--text-faded); }
.sb-hints-table tr.total td, .sb-hints-table tr.total th { font-weight: 700; border-bottom: 0; }
.sb-two-letter { display: flex; flex-wrap: wrap; gap: 4px 14px; text-transform: uppercase; }
.sb-two-letter span { white-space: nowrap; }
.sb-two-letter span.done { color: var(--text-faded); text-decoration: line-through; }
.sb-hints-note { font-size: 13px; color: var(--text-subdued); font-weight: 400; }

/* Yesterday + archive lists */
.sb-answer-list { column-count: 3; column-gap: 20px; }
.sb-answer-list li { break-inside: avoid; text-transform: capitalize; padding: 2px 0; border-bottom: 1px solid var(--stroke-tertiary); margin-bottom: 4px; }
.sb-answer-list li.pangram { font-weight: 700; }
.sb-answer-list li.found::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bg-sb); margin-right: 6px; vertical-align: 2px; }
.sb-archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sb-archive-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--stroke-tertiary);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
.sb-archive-list a:hover { background: var(--bg-hover); }
.sb-archive-list a.today { border-color: var(--bg-sb); background: #fdf6c9; }
.sb-archive-list small { display: block; color: var(--text-subdued); font-weight: 400; }

/* Genius / Queen Bee moment */
.sb-moment { text-align: center; padding-bottom: 8px; }
.sb-moment > * + * { margin-top: 12px; }
.sb-moment img { width: 72px; height: 72px; }
.sb-moment .sb-modal-title { font-size: 34px; }

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .pz-game-title-bar { padding: 24px 16px 18px; }
  .pz-game-title { font-size: 34px; }
  .pz-game-date { font-size: 22px; }
  .pz-game-editor { margin-top: 6px; }
  .pz-toolbar-inner { padding: 0 6px; justify-content: center; height: 48px; overflow-x: auto; }
  .pz-toolbar-button { padding: 0 10px; font-size: 15px; }
  .pz-toolbar-button__more { font-size: 15px; }

  .sb-content-box { flex-direction: column; padding-bottom: 24px; }
  .sb-status-box { width: 100%; padding: 12px 12px 0; position: relative; z-index: 10; }
  .sb-progress { padding-right: 12px; }
  .sb-progress-rank { min-width: 88px; }

  .sb-wordlist-box { min-height: 0; margin-top: 12px; background: #fff; }
  .sb-wordlist-heading-wrap { cursor: pointer; }
  .sb-wordlist-summary { opacity: 0; top: -45px; }
  .sb-recent-words-wrap { top: 0; opacity: 1; }
  .sb-expanded .sb-wordlist-summary { top: 0; opacity: 1; }
  .sb-expanded .sb-recent-words-wrap { top: 45px; opacity: 0; }
  .sb-toggle-expand { display: flex; }

  .sb-wordlist-drawer { display: none; }
  .sb-expanded .sb-wordlist-drawer {
    display: block;
    position: absolute;
    left: -1px;
    right: -1px;
    top: 44px;
    min-height: 60vh;
    background: #fff;
    border: 1px solid var(--stroke-tertiary);
    border-top: 0;
    border-radius: 0 0 6px 6px;
  }
  .sb-expanded.sb-wordlist-box { border-radius: 6px 6px 0 0; }
  .sb-wordlist-items-pag { column-count: 2; }

  .sb-controls-box { width: 100%; min-height: 0; padding-top: 72px; }
  .sb-controls { width: 290px; }
  .sb-modal-content { padding: 0 20px 24px; }
  .sb-answer-list { column-count: 2; }
}

@media (max-width: 370px) {
  .sb-hive-input { font-size: 1.6em; }
  .sb-controls { width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-hive-input-content::after { animation: none; }
  .hive-cell .cell-fill, .sb-progress-marker { transition: none; }
}
