:root {
  --text: #0f172a;
  --bg-1: #d2e4ff;
  --bg-2: #b6d0f6;
  --panel: #ffffff;
  --board: #1c3166;
  --board-border: #8ea0bb;
  --hud-border: #0b3b88;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  --card-width: 96px;
  --card-height: 220px;
  --row-step: 25px;
  --rows: 15;
  --board-column-total-height: calc(var(--card-height) + (var(--rows) - 1) * var(--row-step) + 130px);
  --app-vh: 100vh;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: var(--app-vh);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
}

.site-header {
  position: relative;
  padding: 6px 22px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.game-title-group {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.site-header h1 {
  margin: 0;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: 0.03em;
  min-width: 0;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

.site-header h1 .home-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.site-header h1 .home-brand-link:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 4px;
  border-radius: 8px;
}

.hud-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.title-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.title-icon {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1;
  font-weight: 700;
}

.title-icon.spade,
.title-icon.club {
  color: #b08d57;
}

.title-icon.heart,
.title-icon.diamond {
  color: #ff0000;
}

.hud {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.hud-left {
  justify-content: flex-end;
}

.hud-left .hud-box {
  position: relative;
}

.hud-left .hud-label {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.hud-left .hud-box strong {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: auto;
  min-width: 116px;
  padding: 7px 20px;
  text-align: center;
  border: 2px solid #8ea0bb;
  border-radius: 8px;
  background: #d9dee7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  line-height: 1;
}

#score-value,
#level-value {
  font-size: 1.62rem;
}

.hud-right {
  justify-content: flex-start;
}

.hud-box {
  min-width: 156px;
  height: 96px;
  padding: 8px 10px;
  border: 2px solid var(--hud-border);
  border-radius: 13px;
  background: #e5efff;
  color: #0f172a;
  display: grid;
  align-content: center;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.hud-label {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hud-box strong {
  font-size: 1.42rem;
  line-height: 1.1;
}

#next-value {
  min-height: 92px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#next-value .next-mini-card {
  width: 56px;
  height: 78px;
  flex: 0 0 56px;
  border-radius: 8px;
  transform: translateY(10px);
}

#blocked-value {
  min-height: 92px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hud-card-preview {
  width: 160px;
  height: 46px;
  object-fit: fill;
  object-position: center;
  display: block;
  flex: 0 0 auto;
  max-width: none;
  margin-top: 10px;
  transform: none;
  transform-origin: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.hud-right .hud-box {
  position: relative;
  width: 146px;
  min-width: 146px;
  max-width: 146px;
  flex: 0 0 146px;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.hud-right .hud-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.84rem;
}

#blocked-value .next-mini-card {
  width: 56px;
  height: 78px;
  flex: 0 0 56px;
  border-radius: 8px;
  transform: translateY(10px);
}

#next-value .next-mini-card .mini-rank,
#blocked-value .next-mini-card .mini-rank {
  top: 4px;
  right: 5px;
  font-size: 0.68rem;
}

#next-value .next-mini-card .mini-suit,
#blocked-value .next-mini-card .mini-suit {
  font-size: 1.6rem;
  opacity: 0.95;
}

#next-value .next-mini-card .mini-suit-joker,
#blocked-value .next-mini-card .mini-suit-joker {
  width: 20px;
  height: 20px;
}

#next-value .next-mini-card .mini-joker-core,
#blocked-value .next-mini-card .mini-joker-core {
  width: 32px;
  height: 44px;
  transform: translate(-6px, -12px);
}

#blocked-box {
  cursor: pointer;
}

.home {
  display: grid;
  place-items: center;
  padding: 26px 14px;
}

.seo-content {
  width: min(100%, 1180px);
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px solid #8ea0bb;
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.96);
  color: #0f172a;
}

.seo-content h2,
.seo-content h3 {
  margin: 0 0 8px;
}

.seo-content h2 {
  font-size: 1.2rem;
}

.seo-content h3 {
  font-size: 1rem;
  margin-top: 12px;
}

.seo-content p {
  margin: 0;
  line-height: 1.45;
}

.game-mechanics-showcase {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #8ea0bb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.game-mechanics-showcase h3 {
  margin: 0 0 8px;
}

.game-mechanics-showcase img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.site-footer {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 4px 14px 26px;
  position: relative;
  z-index: 5200;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.site-footer.site-footer-stacked-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 8px;
}

.site-footer.site-footer-stacked-actions .footer-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.site-footer.site-footer-stacked-actions .footer-right {
  justify-items: end;
}

.how-to-play-button {
  border: 2px solid #0b3b88;
  background: #e5efff;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.how-to-play-button:hover {
  background: #d5e5ff;
}

.footer-game-link {
  border: 2px solid #0b3b88;
  border-radius: 10px;
  padding: 10px 18px;
  background: #e5efff;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.footer-actions .footer-game-link:link,
.footer-actions .footer-game-link:visited,
.footer-actions .footer-game-link:hover,
.footer-actions .footer-game-link:focus,
.footer-actions .footer-game-link:active {
  color: #0f172a;
  text-decoration: none;
}

.footer-actions .footer-game-link:hover {
  background: #d5e5ff;
}

.footer-actions .footer-game-link .burst-word {
  color: #dc2626;
}

.report-bug-btn {
  border: 1px solid #f59e0b !important;
  background: #6a2b08 !important;
  color: #ffedd5 !important;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 5201;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #0b3b88;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.internal-links {
  width: 100%;
  display: block;
  margin-top: 12px;
}

.internal-links-title {
  margin: 0;
  color: #0b3b88;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.internal-links-title::-webkit-details-marker {
  display: none;
}

.internal-links-title::marker {
  content: "";
}

.internal-links-dropdown {
  width: 100%;
}

.internal-links-dropdown[open] .internal-links-title {
  margin-bottom: 6px;
}

.internal-links-list {
  display: none;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid #8ea0bb;
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.98);
  padding: 8px 10px;
}

.internal-links-dropdown[open] .internal-links-list {
  display: flex;
}

.internal-links-list a {
  color: #0b3b88;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.internal-links-list a:hover {
  text-decoration: underline;
}

.footer-meta {
  margin: 0;
  font-size: 12px;
  color: #6b6b6b;
  text-align: center;
  line-height: 1.35;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  place-items: center;
  padding: 16px;
}

.help-modal-panel {
  width: min(800px, 96vw);
  max-height: min(88vh, 760px);
  overflow: auto;
  position: relative;
  border-radius: 14px;
  border: 2px solid #0b3b88;
  background: rgba(239, 246, 255, 0.99);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.38);
  padding: 20px 20px 16px;
}

.help-modal-panel h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.bug-report-modal-panel {
  width: min(560px, 94vw);
}

.bug-report-form {
  display: grid;
  gap: 8px;
  text-align: left;
}

.bug-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
}

.bug-report-form input[type="text"],
.bug-report-form select,
.bug-report-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 59, 136, 0.35);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.bug-report-form textarea {
  resize: vertical;
  min-height: 72px;
}

.bug-report-status {
  margin: 2px 0 0;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.bug-report-status.ok {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(5, 150, 105, 0.45);
  color: #065f46;
}

.bug-report-status.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.42);
  color: #7f1d1d;
}

.bug-form-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bug-submit-btn {
  min-width: 170px;
}

.help-section-title {
  margin: 16px 0 8px;
  font-size: 1.08rem;
  font-weight: 900;
  color: #000000;
}

.controls-mobile {
  display: none;
}

.help-modal-panel ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  line-height: 1.4;
}

.help-good-luck {
  margin: 14px 0 0;
  font-weight: 800;
}

.help-play-button {
  display: block;
  margin: 14px auto 0;
  border: 2px solid #8b1e1e;
  background: #dc2626;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.05em;
  font-size: 0.96rem;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.help-play-button:hover {
  background: #b91c1c;
}

.help-play-button-purple {
  border-color: #6d28d9;
  background: #a78bfa;
  color: #1f1147;
}

.help-play-button-purple:hover {
  background: #8b5cf6;
}

.help-play-button-green {
  border-color: #166534;
  background: #22c55e;
  color: #052e16;
}

.help-play-button-green:hover {
  background: #16a34a;
}

.help-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 66px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid #0b3b88;
  background: #e5efff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-close:hover {
  background: #d5e5ff;
}

.control-modal-panel {
  width: min(1000px, 96vw);
  max-height: min(92vh, 940px);
  overflow: auto;
  position: relative;
  border-radius: 14px;
  border: 2px solid #0b3b88;
  background: rgba(239, 246, 255, 0.99);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.38);
  padding: 20px 16px 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.control-modal-title {
  margin: 0;
  font-size: 1.25rem;
}

.control-image {
  width: min(940px, 92vw);
  height: auto;
  display: block;
  border: 2px solid #8ea0bb;
  border-radius: 10px;
  background: #ffffff;
}

.more-games-modal-panel {
  width: min(460px, 94vw);
  max-height: min(80vh, 420px);
  overflow: auto;
  position: relative;
  border-radius: 14px;
  border: 2px solid #0b3b88;
  background: rgba(239, 246, 255, 0.99);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.38);
  padding: 20px 16px 16px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.more-games-actions {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.score-trace-panel {
  position: fixed;
  top: 86px;
  width: 250px;
  max-height: calc(100vh - 100px);
  display: grid;
  align-content: start;
  gap: 8px;
  z-index: 1600;
  pointer-events: none;
}

.score-trace-panel.left {
  left: 10px;
}

.score-trace-panel.right {
  right: 10px;
}

.score-trace-card {
  border: 2px solid #1e40af;
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.95);
  color: #0f172a;
  padding: 8px 9px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
  font-size: 0.74rem;
  line-height: 1.25;
}

.score-trace-card.trace-near-reset {
  border-color: #f59e0b;
  background: rgba(254, 243, 199, 0.96);
}

.score-trace-card.trace-last-before-reset {
  border-color: #dc2626;
  background: rgba(254, 226, 226, 0.96);
}

.score-trace-card.trace-level-up {
  border-color: #15803d;
  background: rgba(220, 252, 231, 0.98);
  color: #14532d;
  font-weight: 800;
}

.trace-line {
  margin: 0;
}

.trace-highlight {
  margin-top: 4px;
  color: #b91c1c;
  font-weight: 900;
}

.hero-box {
  position: relative;
  width: min(100%, 1180px);
  min-height: calc(var(--board-column-total-height) + 76px);
  background: var(--panel);
  border-radius: 18px;
  border: 3px solid #1e88e5;
  box-shadow: var(--shadow);
  padding: 20px;
}

.column-warning {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2100;
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid #f59e0b;
  background: #fef3c7;
  color: #7c2d12;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
}

.column-warning.active {
  animation: columnWarningFade 3000ms ease-in-out forwards;
}

.four-suits-bonus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2200;
  min-width: 300px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid #f59e0b;
  background: rgba(15, 23, 42, 0.9);
  color: #fde68a;
  text-align: center;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  opacity: 0;
}

.four-suits-bonus strong {
  font-size: 1.42rem;
  color: #fbbf24;
}

.four-suits-bonus span {
  font-size: 0.82rem;
  color: #ffffff;
}

.four-suits-bonus.active {
  animation: fourSuitsBonusFade 2600ms ease-out forwards;
}

.perfect-suits-bonus {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2250;
  min-width: 320px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid #16a34a;
  background: rgba(6, 46, 22, 0.9);
  color: #bbf7d0;
  text-align: center;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  opacity: 0;
}

.perfect-suits-bonus strong {
  font-size: 1.42rem;
  color: #86efac;
}

.perfect-suits-bonus span {
  font-size: 0.95rem;
  color: #dcfce7;
}

.perfect-suits-bonus.active {
  animation: perfectSuitsBonusFade 4000ms ease-out forwards;
}

.combo-streak-bonus {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4305;
  min-width: 340px;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid #f59e0b;
  background: rgba(69, 26, 3, 0.9);
  color: #fef3c7;
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  opacity: 0;
}

.combo-streak-bonus strong {
  font-size: 1.24rem;
  color: #fde68a;
}

.combo-streak-bonus.active {
  animation: comboStreakBonusFade 1000ms ease-out forwards;
}

.card-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
  min-height: var(--board-column-total-height);
}

.done-suits {
  margin-top: 10px;
  border: 1px solid #94a3b8;
  border-radius: 10px;
  min-height: 44px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 10px;
}

.done-suit-chip {
  min-width: 120px;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: #ffffff;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 6px 12px;
  line-height: 1;
  white-space: nowrap;
}

.done-inline {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  white-space: nowrap;
}

.done-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.done-symbol {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.done-name {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.drop-column {
  border: 1px solid #9dc2f6;
  border-radius: 10px;
  padding: 5px;
  background: #e8f1ff;
  transition: box-shadow 130ms ease, border-color 130ms ease;
}

.drop-column.active-fall-column {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 2px rgba(147, 197, 253, 0.7),
    0 0 14px rgba(96, 165, 250, 0.48),
    0 0 28px rgba(37, 99, 235, 0.32);
}

.drop-column.freezed-column {
  background:
    linear-gradient(180deg, rgba(186, 230, 253, 0.6), rgba(96, 165, 250, 0.4)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.35) 0,
      rgba(255, 255, 255, 0.35) 8px,
      rgba(191, 219, 254, 0.35) 8px,
      rgba(191, 219, 254, 0.35) 16px
    );
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 2px rgba(191, 219, 254, 0.7);
}

.drop-column h3 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.8rem;
}

.column-stack {
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 6px;
}

.fall-zone {
  position: relative;
  width: 100%;
  height: calc(var(--card-height) + (var(--rows) - 1) * var(--row-step));
  border-radius: 8px;
  border: 2px solid var(--board-border);
  overflow: hidden;
  background: var(--board);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.08) 0,
    rgba(15, 23, 42, 0.08) 1px,
    transparent 1px,
    transparent var(--row-step)
  );
}

.column-suit-emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 220;
  pointer-events: none;
  user-select: none;
  font-size: 16rem;
  line-height: 1;
  font-weight: 900;
  opacity: 0.2;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.7),
    0 0 26px rgba(59, 130, 246, 0.35);
}

.column-suit-emblem.emblem-fade-in {
  animation: columnSuitFadeIn 200ms ease-out;
}

.column-suit-complete-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 260;
  pointer-events: none;
  user-select: none;
  font-size: 16rem;
  line-height: 1;
  font-weight: 900;
  opacity: 0;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.85),
    0 0 28px rgba(250, 204, 21, 0.65),
    0 0 44px rgba(245, 158, 11, 0.55);
  animation: columnSuitCompletePop 320ms ease-out forwards;
}

.freeze-overlay {
  position: absolute;
  inset: 0;
  z-index: 1800;
  pointer-events: none;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(1.5px);
}

.freeze-overlay strong {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.85);
}

.freeze-overlay span {
  font-size: 1.5rem;
  font-weight: 900;
  color: #bfdbfe;
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.7);
}

.compact-zone {
  position: relative;
  min-height: 88px;
  display: grid;
  align-content: end;
  gap: 4px;
}

.gap-filled-fx {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1900;
  pointer-events: none;
  padding: 6px 12px;
  border: 2px solid #16a34a;
  border-radius: 10px;
  background: rgba(240, 253, 244, 0.94);
  color: #166534;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
  animation: gapFilledFade 3000ms ease-out forwards;
}

.combo-zone {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1300;
  pointer-events: none;
  display: none;
}

.combo-zone.active {
  display: block;
}

.compact-track {
  width: 100%;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #1c3166;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.mini-card {
  height: 30px;
  border-radius: 4px;
  border: 1px solid #94a3b8;
  background: #1c3166;
  color: #9ca3af;
  font-size: 0.6rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.mini-card.row-1 {
  grid-row: 1;
}

.mini-card.row-2 {
  grid-row: 2;
}

.mini-card.row-3 {
  grid-row: 3;
}

.mini-rank {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 0.56rem;
  line-height: 1;
  font-weight: 800;
  z-index: 2;
}

.mini-suit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 800;
  opacity: 0.25;
  z-index: 1;
}

.mini-card.lit {
  background: #ffffff;
  color: #111827;
  border-color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.mini-card.lit .mini-suit {
  opacity: 1;
}

.mini-suit-joker {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.mini-joker-core {
  width: 38px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  transform: translate(-8px, -14px);
  display: block;
}

.mini-card.lit.suit-red {
  color: #b91c1c;
}

.mini-card.lit.suit-black {
  color: #111827;
}

.mini-card.hint-rank .mini-rank {
  opacity: 1;
  font-weight: 900;
}

.mini-card.hint-rank .mini-suit {
  opacity: 0;
}

.mini-card.hint-rank {
  border-color: #ef4444;
  outline: 2px solid rgba(239, 68, 68, 0.65);
  outline-offset: -2px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

.mini-card.hint-rank.hint-red .mini-rank {
  color: #b91c1c;
}

.mini-card.hint-rank.hint-black .mini-rank {
  color: #111827;
}

.mini-card.mini-merge {
  border-color: #2563eb;
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.72), rgba(96, 165, 250, 0.58));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 10px rgba(59, 130, 246, 0.65),
    0 0 18px rgba(37, 99, 235, 0.48);
}

.mini-card.mini-merge .mini-rank {
  color: #0b1f4d;
  font-weight: 900;
}

.mini-card.mini-merge .mini-suit {
  opacity: 0;
}

.mini-suit-badge {
  grid-column: 5;
  grid-row: 1 / span 2;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #1c3166;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #9ca3af;
  opacity: 0.45;
  line-height: 1;
}

.mini-suit-badge.active {
  background: #ffffff;
  border-color: #334155;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sequence-bar {
  width: 100%;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #f9fafb;
  color: #0f172a;
  font-size: 1.56rem;
  font-weight: 800;
  line-height: 1.3;
  min-height: 50px;
  padding: 10px 6px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.seq-card {
  display: inline-block;
  margin-right: 5px;
  min-width: 1.1em;
  letter-spacing: 0.01em;
}

.suit-red {
  color: #b91c1c;
}

.suit-black {
  color: #111827;
}

.blocked-card {
  z-index: 300;
  opacity: 0.95;
  pointer-events: none;
}

.blocked-linked {
  outline: none !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 0 rgba(56, 189, 248, 1))
    drop-shadow(0 0 1px rgba(56, 189, 248, 0.78))
    drop-shadow(0 0 3px rgba(59, 130, 246, 0.66))
    drop-shadow(0 0 6px rgba(37, 99, 235, 0.5))
    drop-shadow(0 0 9px rgba(29, 78, 216, 0.38)) !important;
}

.blocked-card {
  background-image: none !important;
}

.blocked-glow {
  box-shadow:
    0 0 0 2px rgba(244, 63, 94, 0.55),
    0 0 16px rgba(244, 63, 94, 0.85),
    0 0 28px rgba(244, 63, 94, 0.45);
}

.blocked-combo-chip {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(15, 23, 42, 0.85);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 255, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.25), rgba(255, 255, 255, 0));
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.2),
    0 0 0 2px rgba(250, 204, 21, 0.6);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 4px 10px;
  text-align: center;
  pointer-events: none;
  min-height: 54px;
}

.blocked-combo-chip .blocked-combo-label {
  color: #0f172a;
}

.blocked-combo-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.blocked-combo-range {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
}

.blocked-combo-range.combo-range-inline {
  width: 100%;
  display: block;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1.15;
}

.blocked-combo-range.combo-range-inline.combo-range-tight {
  text-overflow: ellipsis;
}

.blocked-combo-chip.combo-loss-fade {
  animation: comboLossFade 1900ms ease-in-out;
}

.combo-fx {
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 1700;
  display: grid;
  place-items: center;
  animation: comboFxOut 4000ms ease-out forwards;
}

.combo-fx::before {
  content: "";
  position: absolute;
  width: 176px;
  height: 176px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 244, 155, 0.92) 0%, rgba(255, 89, 89, 0.56) 38%, rgba(255, 89, 89, 0) 72%);
  filter: blur(1px);
  animation: comboBurst 650ms ease-out forwards;
}

.combo-fx-plus {
  position: relative;
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  color: #fef08a;
  text-shadow:
    0 0 12px rgba(250, 204, 21, 0.95),
    0 0 24px rgba(239, 68, 68, 0.72);
  transform: translateY(-4px);
}

.combo-fx-word {
  position: relative;
  margin-top: -8px;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(239, 68, 68, 0.95),
    0 0 24px rgba(248, 113, 113, 0.72);
}

.unlock-points-fx {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 1750;
  pointer-events: none;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #16a34a;
  text-shadow:
    0 0 8px rgba(34, 197, 94, 0.7),
    0 0 16px rgba(21, 128, 61, 0.55);
  animation: unlockPointsFade 2000ms ease-out forwards;
}

.card {
  position: absolute;
  left: -18%;
  width: 136%;
  height: var(--card-height);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transition: none;
  animation: none;
}

.bonus-green-aura {
  filter:
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 0 rgba(34, 197, 94, 1))
    drop-shadow(0 0 2px rgba(34, 197, 94, 0.95))
    drop-shadow(0 0 6px rgba(22, 163, 74, 0.82))
    drop-shadow(0 0 10px rgba(21, 128, 61, 0.66))
    drop-shadow(0 0 14px rgba(22, 101, 52, 0.5)) !important;
}

.blocked-linked.bonus-green-aura {
  filter:
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 0 rgba(34, 197, 94, 1))
    drop-shadow(0 0 2px rgba(34, 197, 94, 0.95))
    drop-shadow(0 0 6px rgba(22, 163, 74, 0.82))
    drop-shadow(0 0 10px rgba(21, 128, 61, 0.66))
    drop-shadow(0 0 14px rgba(22, 101, 52, 0.5)) !important;
}

.bonus-roulette {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bonus-reel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bonus-reel-track {
  position: absolute;
  left: -18%;
  top: calc(var(--card-height) * -1);
  width: 136%;
  display: grid;
  gap: 14px;
  animation: bonusReelVertical 820ms linear infinite;
  animation-play-state: running !important;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.game-paused .bonus-reel-track {
  animation-play-state: paused !important;
}

.bonus-back-card {
  width: 100%;
  height: var(--card-height);
  opacity: 0.92;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32));
}

.bonus-reveal-card {
  left: 0 !important;
  width: 100% !important;
  top: 0 !important;
  transform: none !important;
  z-index: 8;
}

.bonus-fast-drop {
  z-index: 3600 !important;
  pointer-events: none;
}

.bonus-status {
  width: 100%;
  min-height: 112px;
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #f9fafb;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 6px;
  gap: 4px;
}

.bonus-line {
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.bonus-countdown {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
  color: #dc2626;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.35);
}

.reset-suit-btn {
  width: 100%;
  border: 1px solid #2563eb;
  background: #dbeafe;
  color: #0b3b88;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: pre-line;
  text-align: center;
  cursor: pointer;
}

.reset-suit-btn:hover {
  background: #bfdbfe;
}

.reset-suit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #dbe4f4;
  color: #4b5f82;
  border-color: #8ea0bb;
}

.falling-card {
  z-index: 4000 !important;
  transform: scale(1.14);
  transform-origin: top center;
}

.attract-falling-card {
  pointer-events: none;
  z-index: 3200 !important;
  opacity: 0.92;
  transform: scale(1.08);
  transform-origin: top center;
  will-change: top, opacity;
  transition: top var(--attract-fall-ms, 2200ms) linear, opacity 180ms linear;
}

.attract-falling-card.attract-fade-out {
  opacity: 0;
}

.evaporating {
  animation: evaporate 3s linear forwards;
}

.explode-disappear {
  animation: explodeDisappear 3s ease-out forwards;
}

.start-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  z-index: 5000;
  background: rgba(15, 23, 42, 0.34);
  border-radius: 14px;
}

.overlay-panel {
  position: relative;
  min-width: min(92%, 520px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 2px solid #0b3b88;
  background: rgba(239, 246, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.overlay-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid #0b3b88;
  border-radius: 8px;
  background: #dbeafe;
  color: #0b3b88;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  cursor: pointer;
}

.overlay-close-button:hover {
  background: #bfdbfe;
}

.start-overlay.is-result-overlay {
  place-items: start center;
  align-content: start;
  padding-top: 0;
}

.start-overlay.is-result-overlay .overlay-panel {
  transform: translateY(0);
  margin-top: 0;
}

.overlay-message {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
  text-shadow: none;
}

.overlay-message:empty {
  display: none;
}

.overlay-section-chip {
  display: inline-block;
  margin: 4px auto;
  padding: 4px 14px;
  border: 2px solid #0284c7;
  border-radius: 10px;
  background: linear-gradient(180deg, #d7f0ff 0%, #b7e3ff 100%);
  color: #0b3b88;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.start-overlay.hidden {
  display: none;
}

.start-button {
  border: 2px solid #0b3b88;
  background: #2F6FED;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.start-button:hover {
  background: #2b64d6;
}

.blink-merge {
  animation: none !important;
}

.wrong-suit-flash {
  animation: wrongSuitFlash 320ms ease-in-out 3;
}

.wrong-suit-sticky {
  filter:
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 0 rgba(239, 68, 68, 1))
    drop-shadow(0 0 2px rgba(239, 68, 68, 0.95))
    drop-shadow(0 0 6px rgba(220, 38, 38, 0.82))
    drop-shadow(0 0 10px rgba(185, 28, 28, 0.66))
    drop-shadow(0 0 14px rgba(153, 27, 27, 0.5)) !important;
}

@keyframes wrongSuitFlash {
  0%,
  100% {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  }
  45% {
    filter:
      drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
      drop-shadow(0 0 0 rgba(239, 68, 68, 1))
      drop-shadow(0 0 1px rgba(239, 68, 68, 0.78))
      drop-shadow(0 0 3px rgba(220, 38, 38, 0.66))
      drop-shadow(0 0 6px rgba(185, 28, 28, 0.5))
      drop-shadow(0 0 9px rgba(153, 27, 27, 0.38));
  }
}

@keyframes blinkMerge {
  0%, 100% {
    opacity: 1;
  }
  16%, 50%, 83% {
    opacity: 0.25;
  }
  33%, 66% {
    opacity: 1;
  }
}

@keyframes comboChipPop {
  0% {
    transform: scale(0.84);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes comboBurst {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes comboFxOut {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  10% {
    opacity: 1;
    transform: scale(1.04);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes gapFilledFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -58%) scale(0.9);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(1.04);
  }
}

@keyframes unlockPointsFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.85);
  }
  14% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -56%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -64%) scale(1.06);
  }
}

@keyframes comboLossFade {
  0% {
    opacity: 1;
    filter: none;
  }
  45% {
    opacity: 0.3;
    filter: saturate(0.7);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

@keyframes columnWarningFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  12% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  78% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes fourSuitsBonusFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -54%) scale(0.92);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(1.03);
  }
}

@keyframes perfectSuitsBonusFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -54%) scale(0.92);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(1.03);
  }
}

@keyframes comboStreakBonusFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -56%) scale(0.9);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(1.04);
  }
}

@keyframes columnSuitFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.2;
  }
}

@keyframes columnSuitCompletePop {
  0% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(1.22);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.32);
  }
}

@keyframes bonusReelVertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(var(--card-height) + 14px));
  }
}

@keyframes evaporate {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes explodeDisappear {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  }
  18% {
    opacity: 0.2;
    transform: scale(1.08);
  }
  30% {
    opacity: 1;
    transform: scale(0.98);
  }
  45% {
    opacity: 0.2;
    transform: scale(1.12);
  }
  62% {
    opacity: 1;
    transform: scale(1.18);
    filter: drop-shadow(0 10px 16px rgba(255, 80, 80, 0.55));
  }
  100% {
    opacity: 0;
    transform: scale(0.4);
    filter: blur(3px);
  }
}

@media (max-width: 980px) {
  .score-trace-panel {
    display: none;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 4px 10px;
  }

  .game-title-group {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-right: 0;
  }

  .site-header h1 {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    font-size: clamp(1.55rem, 4.1vw, 2.05rem);
  }

  .site-header h1 .home-brand-link {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hud-cluster {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hud-left,
  .hud-right {
    width: auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .card-groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .drop-column {
    min-width: 0;
  }

  .controls-desktop {
    display: none;
  }

  .controls-mobile {
    display: block;
  }
}

@media (max-width: 620px) {
  :root {
    --card-height: 194px;
    --board-column-total-height: calc(var(--card-height) + (var(--rows) - 1) * var(--row-step) + 112px);
  }

  .site-header {
    justify-content: center;
    gap: 8px;
    padding: 4px 6px;
  }

  .site-header h1 {
    font-size: clamp(1.08rem, 6.4vw, 1.5rem);
    letter-spacing: 0.02em;
    min-width: 0;
  }

  .start-overlay.is-result-overlay .overlay-panel {
    transform: translateY(0);
    margin-top: 0;
  }

  .title-icons {
    gap: 4px;
  }

  .title-icon {
    font-size: clamp(1.12rem, 4.4vw, 1.35rem);
  }

  .hud {
    gap: 6px;
  }

  .hud-cluster {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .hud-box {
    min-width: 100px;
    width: 100px;
    height: 72px;
    padding: 6px 6px;
    border-radius: 10px;
  }

  .hud-label {
    font-size: 0.72rem;
  }

  .hud-left .hud-label {
    top: 7px;
  }

  .hud-left .hud-box strong {
    top: 60%;
    min-width: 78px;
    padding: 4px 10px;
    font-size: 0.92rem;
    border-radius: 7px;
  }

  .hud-right .hud-box {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    flex: 0 0 100px;
  }

  .hud-right .hud-label {
    top: 4px;
    font-size: 0.66rem;
  }

  #next-value,
  #blocked-value {
    min-height: 58px;
  }

  .hud-card-preview {
    width: 120px;
    height: 34px;
    margin-top: 6px;
  }

  .home {
    padding: 12px 8px;
  }

  .seo-content {
    margin-top: 10px;
    padding: 10px 12px;
  }

  .seo-content h2 {
    font-size: 1.06rem;
  }

  .seo-content h3 {
    font-size: 0.9rem;
  }

  .hero-box {
    padding: 10px;
    border-width: 2px;
  }

  .card-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .done-suit-chip {
    min-width: 0;
    gap: 0.2rem;
    padding: 6px 9px;
  }

  .done-inline {
    flex-direction: column;
    gap: 0.12rem;
    line-height: 1;
  }

  .done-symbol {
    font-size: 1.05rem;
  }

  .drop-column {
    padding: 3px;
  }

  .drop-column.freezed-column {
    background: #dbeafe;
    border-color: #60a5fa;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.7);
  }

  .drop-column h3 {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .column-stack {
    gap: 4px;
  }

  .compact-zone {
    min-height: 80px;
    gap: 3px;
  }

  .card {
    left: -2%;
    width: 104%;
  }

  .bonus-reel-track {
    left: -2%;
    width: 104%;
  }

  .column-suit-emblem {
    font-size: 7.2rem;
  }

  .mini-card {
    height: 28px;
  }

  .mini-rank {
    top: 2px;
    right: 3px;
    font-size: 0.5rem;
    font-weight: 800;
  }

  #next-value .next-mini-card,
  #blocked-value .next-mini-card {
    transform: translateY(8px);
  }

  .mini-suit {
    font-size: 0.86rem;
  }

  .mini-suit-badge {
    font-size: 0.94rem;
  }

  .mini-suit-joker {
    width: 14px;
    height: 14px;
  }

  .mini-joker-core {
    width: 24px;
    height: 34px;
    transform: translate(-5px, -9px);
  }

  .freeze-overlay {
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: none;
  }

  .freeze-overlay strong {
    font-size: 0.9rem;
    text-shadow: none;
  }

  .freeze-overlay span {
    font-size: 1.1rem;
    text-shadow: none;
  }

  .help-modal-panel {
    padding: 18px 14px 14px;
  }

  .help-modal-panel h2 {
    font-size: 1.28rem;
  }

  .more-games-modal-panel {
    max-height: min(86vh, 520px);
    overflow-y: auto;
  }

  .more-games-actions .help-play-button {
    width: min(86vw, 340px);
  }

  .site-footer {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-right {
    justify-items: center;
  }

  .footer-links {
    justify-content: center;
    gap: 14px;
  }

  .internal-links-title {
    text-align: center;
  }

  .internal-links-list {
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  html.mobile-opera-edge .home {
    padding: 10px 6px;
  }

  html.mobile-opera-edge .hero-box {
    padding: 8px;
  }

  html.mobile-opera-edge .card-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px;
  }

  html.mobile-opera-edge .drop-column {
    padding: 2px;
  }

  html.mobile-opera-edge .drop-column h3 {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  html.mobile-opera-edge .column-stack {
    gap: 3px;
  }

  html.mobile-opera-edge .compact-zone {
    min-height: 74px;
  }
}
