.hot-tool .f2048 {
  --g: 10px;
  --crate: #d9b77e;
  --crate-deep: #b88d4f;
  --slot: #f3e4c4;
  --ink: #4a3215;
  max-width: 500px;
  margin: 1.25rem auto 2.25rem;
  color: var(--ink);
}

.hot-tool .f-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.hot-tool .f-scores { display: flex; gap: 0.5rem; }

.hot-tool .f-score {
  position: relative;
  min-width: 5.2rem;
  padding: 0.35rem 0.8rem 0.4rem;
  border-radius: 10px;
  background: #7a5426;
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.hot-tool .f-score strong { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.hot-tool .f-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0;
}

.hot-tool .f-plus {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.6rem;
  font-weight: 800;
  color: #2f7d32;
  pointer-events: none;
  animation: f-rise 700ms ease-out forwards;
}

@keyframes f-rise {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-2.2rem); opacity: 0; }
}

.hot-tool .f-actions { display: flex; gap: 0.4rem; }

.hot-tool .f-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  background: #ead7b3;
  color: var(--ink);
  cursor: pointer;
  transition: background 120ms, transform 80ms;
}

.hot-tool .f-btn:hover { background: #e0c898; }
.hot-tool .f-btn:active { transform: scale(0.96); }
.hot-tool .f-btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.hot-tool .f-primary { background: #e0592a; color: #fff; }
.hot-tool .f-primary:hover { background: #c94a1f; }
.hot-tool .f-icon { padding: 0.6rem 0.7rem; }

.hot-tool .f-btn:focus-visible,
.hot-tool .f-board:focus-visible {
  outline: 3px solid #2f6fdf;
  outline-offset: 3px;
}

.hot-tool .f-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--crate), var(--crate-deep));
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06), 0 10px 26px rgba(122, 84, 38, 0.25);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  container-type: inline-size;
  overflow: hidden;
}

.hot-tool .f-board.f-bump { animation: f-bump 160ms ease; }

@keyframes f-bump {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

.hot-tool .f-cells {
  position: absolute;
  inset: 0;
  padding: var(--g);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: var(--g);
}

.hot-tool .f-cells span {
  border-radius: 12px;
  background: var(--slot);
  box-shadow: inset 0 3px 6px rgba(122, 84, 38, 0.18);
}

.hot-tool .f-layer { position: absolute; inset: 0; }

.hot-tool .f-tile {
  position: absolute;
  left: var(--g);
  top: var(--g);
  width: calc((100% - 5 * var(--g)) / 4);
  height: calc((100% - 5 * var(--g)) / 4);
  transform: translate(calc(var(--x, 0) * (100% + var(--g))), calc(var(--y, 0) * (100% + var(--g))));
  transition: transform 110ms ease-in-out;
  z-index: 2;
}

.hot-tool .f-tile.f-under { z-index: 1; }

.hot-tool .f-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #fff);
  box-shadow: 0 3px 0 var(--edge, rgba(0, 0, 0, 0.15)), 0 5px 10px rgba(74, 50, 21, 0.18);
}

.hot-tool .f-emoji {
  font-size: 2.1rem;
  font-size: 12.5cqw;
  line-height: 1;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.18));
}

.hot-tool .f-val {
  position: absolute;
  right: 6%;
  bottom: 4%;
  font-size: 10px;
  font-size: max(9px, 2.5cqw);
  font-weight: 800;
  color: var(--edge, #000);
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.hot-tool .f-new .f-inner { animation: f-appear 180ms ease 100ms backwards; }
.hot-tool .f-pop .f-inner { animation: f-pop 210ms ease; }

@keyframes f-appear {
  from { transform: scale(0.1); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes f-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.hot-tool .f-l0 { --bg: #ffe3e6; --edge: #d9758a; }
.hot-tool .f-l1 { --bg: #ffd2d6; --edge: #cf4f63; }
.hot-tool .f-l2 { --bg: #ecdcff; --edge: #8a5cc7; }
.hot-tool .f-l3 { --bg: #ffdcb3; --edge: #de7d1c; }
.hot-tool .f-l4 { --bg: #fff1a6; --edge: #c39a0b; }
.hot-tool .f-l5 { --bg: #ffc7bf; --edge: #c8382a; }
.hot-tool .f-l6 { --bg: #e0f3bf; --edge: #6f9a2a; }
.hot-tool .f-l7 { --bg: #ffd5c2; --edge: #dd6d48; }
.hot-tool .f-l8 { --bg: #ffe09a; --edge: #d58a08; }
.hot-tool .f-l9 { --bg: #ffeb85; --edge: #b88a00; }
.hot-tool .f-l10 { --bg: #c8f0c4; --edge: #2f8a3a; }
.hot-tool .f-l11 { --bg: #eadccd; --edge: #8a6a4a; }
.hot-tool .f-l12 { --bg: #ffd29b; --edge: #c1650a; }
.hot-tool .f-l13 { --bg: #fff3b8; --edge: #b8860b; }

.hot-tool .f-tile.f-l10 .f-inner,
.hot-tool .f-tile.f-l11 .f-inner,
.hot-tool .f-tile.f-l12 .f-inner,
.hot-tool .f-tile.f-l13 .f-inner {
  box-shadow: 0 3px 0 var(--edge), 0 0 0 3px rgba(255, 220, 90, 0.9), 0 0 22px rgba(255, 200, 40, 0.75);
}

.hot-tool .f-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 247, 232, 0.88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: f-fade 260ms ease;
}

.hot-tool .f-overlay[hidden] { display: none; }

@keyframes f-fade { from { opacity: 0; } to { opacity: 1; } }

.hot-tool .f-big { font-size: 4rem; font-size: 20cqw; line-height: 1; margin: 0 0 0.3rem; animation: f-pop 420ms ease 120ms; }
.hot-tool .f-ov-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.3rem; }
.hot-tool .f-ov-text { margin: 0 0 1rem; max-width: 22rem; }
.hot-tool .f-ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

.hot-tool .f-toast {
  position: absolute;
  left: 50%;
  top: 0.75rem;
  z-index: 6;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(74, 50, 21, 0.92);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -0.5rem);
  transition: opacity 200ms, transform 200ms;
}

.hot-tool .f-toast.f-show { opacity: 1; transform: translate(-50%, 0); }

.hot-tool .f-hint { margin: 0.6rem 0 0; font-size: 0.9rem; text-align: center; color: #6b5536; }

.hot-tool .f-hint kbd {
  padding: 0 0.35rem;
  border: 1px solid #c9b18a;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 0.85em;
}

.hot-tool .f-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hot-tool .f-collection {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #fbf3e2;
  border: 1px solid #ecdcb9;
}

.hot-tool .f-collection .f-label { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }

.hot-tool .f-dex {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.hot-tool .f-dex li {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ecdfc6;
  color: #b49a70;
  font-weight: 800;
  font-size: 1.05rem;
}

.hot-tool .f-dex li.f-on { background: var(--bg); color: inherit; font-size: 1.45rem; box-shadow: 0 2px 0 var(--edge); }
.hot-tool .f-dex li.f-fresh { animation: f-pop 500ms ease 2; }

.hot-tool .f-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.25rem; font-size: 0.95rem; }
.hot-tool .f-table th,
.hot-tool .f-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid #e6dccb; text-align: left; }
.hot-tool .f-table td:nth-child(2) { font-variant-numeric: tabular-nums; }
.hot-tool .f-table thead th { background: #fbf3e2; }

@media (max-width: 420px) {
  .hot-tool .f2048 { --g: 7px; }
  .hot-tool .f-score { min-width: 4.4rem; padding: 0.3rem 0.55rem; }
  .hot-tool .f-score strong { font-size: 1.1rem; }
  .hot-tool .f-btn { padding: 0.55rem 0.65rem; }
  .hot-tool .f-inner, .hot-tool .f-cells span { border-radius: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .hot-tool .f-tile { transition: none; }
  .hot-tool .f-inner, .hot-tool .f-big, .hot-tool .f-overlay, .hot-tool .f-dex li, .hot-tool .f-board { animation: none !important; }
}
