﻿:root {
  --sky: #0098c2;
  --sky-dark: #087fa8;
  --yellow: #fdf17f;
  --cream: #f8f5e0;
  --blue-text: #2283aa;
  --text-backdrop: rgba(0, 152, 194, 0.62);
  --shadow: rgba(0, 0, 0, 0.25);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Parkinsans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--sky) url("./assets/sky-bg-large.png") center center / cover fixed no-repeat;
  color: var(--yellow);
  font-family: var(--sans);
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(253, 241, 127, 0.5);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: start center;
  overflow: hidden;
  isolation: isolate;
}



@media (min-width: 768px) {
  .app {
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 24px 0;
    overflow: auto;
  }
}
.desktop-plane {
  display: none;
}

@media (min-width: 768px) {
  .desktop-plane {
    position: absolute;
    display: block;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.72;
    z-index: 1;
  }

  .desktop-plane--left {
    left: max(18px, calc(50vw - 600px));
    top: 10vh;
    width: min(34vw, 515px);
    aspect-ratio: 515 / 459;
    background-image: url("./assets/plane-wide-left.png");
    animation: plane-drift-left 18s ease-in-out infinite alternate;
  }

  .desktop-plane--top {
    right: max(28px, calc(50vw - 690px));
    top: 7vh;
    width: min(27vw, 406px);
    aspect-ratio: 406 / 264;
    background-image: url("./assets/plane-wide-top.png");
    animation: plane-drift-top 22s ease-in-out infinite alternate;
  }
}

.phone-shell {
  width: min(393px, 100vw);
  z-index: 2;
  min-height: 807px;
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.screen-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: none;
  z-index: -2;
}

@media (min-width: 768px) {
  .phone-shell {
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .screen-bg {
    display: none;
  }
}
.screen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 152, 194, 0.06);
}

.screen {
  position: absolute;
  inset: 0;
  min-height: 807px;
}

.brand-logo {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 111px;
  height: 45px;
  transform: translateX(-50%);
  z-index: 3;
}

.brand-logo__svg {
  display: block;
  width: 111px;
  height: 45px;
}

.accessibility-button {
  position: absolute;
  right: -7px;
  bottom: 33px;
  width: 51px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px 0 0 14px;
  background: #fffde6;
  z-index: 20;
  cursor: pointer;
}

.accessibility-button img {
  display: block;
  width: 28px;
  height: 28px;
}

.game-title {
  position: absolute;
  top: 126px;
  left: 31px;
  width: 331px;
  height: 90px;
  z-index: 2;
}

.game-title__asset {
  position: absolute;
  display: block;
  transform: rotate(-9.44deg);
  transform-origin: center center;
}

.game-title__asset--the {
  top: 4.7px;
  left: 88.2px;
  width: 58.6px;
  height: 19.4px;
}

.game-title__asset--out {
  top: 29.5px;
  left: 0.6px;
  width: 330.9px;
  height: 30.1px;
}

.game-title__asset--game {
  top: 63.6px;
  left: 172.1px;
  width: 82.5px;
  height: 20.2px;
}
.hero-suitcase {
  position: absolute;
  top: 236px;
  left: 50%;
  width: 366px;
  height: 244px;
  object-fit: cover;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 13.5px var(--shadow));
}

.intro-copy,
.explain-copy,
.nickname-copy,
.result-copy,
.feedback-sheet p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.42;
  text-align: center;
}

.intro-copy {
  position: absolute;
  top: 505px;
  left: 31px;
  width: 326px;
}


.game-title,
.intro-copy,
.section-title,
.explain-copy,
.tip-box,
.nickname-title,
.nickname-copy,
.field-error,
.result-copy,
.text-link:not(.text-link--blue) {
  isolation: isolate;
  z-index: 2;
}

.game-title::before,
.intro-copy::before,
.section-title::before,
.explain-copy::before,
.tip-box::before,
.nickname-title::before,
.nickname-copy::before,
.field-error::before,
.result-copy::before,
.text-link:not(.text-link--blue)::before {
  content: "";
  position: absolute;
  inset: -10px -18px;
  border-radius: 28px;
  background: var(--text-backdrop);
  filter: blur(13px);
  pointer-events: none;
  z-index: -1;
}

.game-title::before,
.nickname-title::before {
  inset: -16px -28px;
  border-radius: 34px;
  filter: blur(17px);
}

.section-title::before,
.intro-copy::before,
.explain-copy::before,
.nickname-copy::before,
.result-copy::before {
  inset: -12px -22px;
}

.tip-box::before {
  inset: -8px -12px;
  border-radius: 20px;
  filter: blur(11px);
}

.field-error::before {
  inset: -5px -14px;
  border-radius: 999px;
  filter: blur(8px);
}

.text-link:not(.text-link--blue)::before {
  inset: -6px -12px;
  border-radius: 999px;
  filter: blur(9px);
}

.figma-button {
  min-width: 0;
  height: 75px;
  border: 3px solid var(--yellow);
  border-radius: 45px;
  background: rgba(0, 152, 194, 0.03);
  color: var(--yellow);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 180ms ease, background 180ms ease;
}

.figma-button:hover:not(:disabled) {
  background: rgba(253, 241, 127, 0.08);
}

.figma-button--pulse {
  position: absolute;
  top: 635px;
  left: 93px;
  width: 207px;
  animation: button-heartbeat 2.35s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.screen--explain .figma-button {
  position: absolute;
  top: 647px;
  left: 79px;
  width: 235px;
}

.figma-button--disabled,
.figma-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.tutorial-grid {
  position: absolute;
  top: 152px;
  left: 76px;
  width: 241px;
  height: 164px;
  display: grid;
  grid-template-columns: repeat(3, 74px);
  grid-template-rows: repeat(2, 74px);
  gap: 16px 9px;
}

.tutorial-grid img:not(.tutorial-hand) {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.52));
}

.tutorial-grid__target {
  animation: tutorial-target 1.5s ease-in-out infinite;
}

.tutorial-hand {
  position: absolute;
  left: 101px;
  top: 118px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  transform: rotate(38deg);
  animation: hand-swipe 1.5s ease-in-out infinite;
  pointer-events: none;
}

.section-title,
.nickname-title,
.feedback-sheet h1 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  line-height: 1.21;
  text-align: center;
}

.section-title {
  position: absolute;
  top: 381px;
  left: 47px;
  width: 299px;
  font-size: 23px;
}

.explain-copy {
  position: absolute;
  top: 429px;
  left: 36px;
  width: 314px;
}

.tip-box {
  position: absolute;
  top: 523px;
  left: 50px;
  width: 303px;
  min-height: 70px;
  margin: 0;
  border: 1px solid rgba(253, 241, 127, 0.7);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.44;
}

.tip-box strong {
  font-weight: 700;
}

.screen--countdown,
.screen--game-over {
  display: grid;
  place-items: center;
}

.countdown-card {
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#countdown-value,
.game-over-title {
  font-family: var(--serif);
  font-size: 4.4rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.game-over-card {
  display: grid;
  place-items: center;
  width: 320px;
  max-width: calc(100vw - 48px);
  text-align: center;
  animation: countdown-pop 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-over-title {
  font-size: 3.7rem;
  line-height: 1.05;
}
.countdown-pop {
  animation: countdown-pop 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-hud {
  position: absolute;
  top: 34px;
  left: 26px;
  right: 39px;
  height: 58px;
}

.circle-button {
  position: absolute;
  top: 10px;
  left: 0;
  width: 43px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.circle-button img {
  display: block;
  width: 15px;
  height: 15px;
}

.hud-stat {
  position: absolute;
  top: 0;
  font-family: var(--serif);
  color: var(--yellow);
  text-transform: uppercase;
}

.hud-stat span {
  display: block;
  font-size: 15px;
  font-style: italic;
  line-height: 1.21;
}

.hud-stat strong {
  display: block;
  margin-top: -1px;
  font-size: 36px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  min-width: 90px;
}

.hud-stat--time {
  left: 112px;
}

.hud-stat--score {
  left: 239px;
}

.category-row {
  position: absolute;
  top: 117px;
  left: 10px;
  width: 364px;
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-pill {
  position: relative;
  height: 66px;
}

.category-pill::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 0;
  bottom: 12px;
  height: 34px;
  border: 1.5px solid var(--yellow);
  border-radius: 22px;
}

.category-pill::after {
  content: none;
}

.category-pill img {
  position: absolute;
  left: -4px;
  bottom: 3px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  transform: rotate(-8deg);
  z-index: 1;
}

.category-stars {
  position: absolute;
  top: 0;
  display: flex;
  gap: 1px;
  height: 11px;
  pointer-events: none;
  z-index: 2;
}

.category-stars i {
  width: 10px;
  height: 10px;
  display: block;
  background: url("./assets/star-rounded.svg") center / contain no-repeat;
}

.category-stars--1 {
  right: 23px;
}

.category-stars--2 {
  right: 17px;
}

.category-stars--3 {
  right: 11px;
}

.category-stars--4 {
  right: 4px;
}

.category-score {
  position: absolute;
  left: 36px;
  right: auto;
  bottom: 21px;
  width: 38px;
  overflow: hidden;
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  text-overflow: ellipsis;
  z-index: 2;
}
.category-pill--pulse {
  animation: score-pulse 420ms ease;
}

.suitcase-board {
  position: absolute;
  left: -25px;
  top: 185px;
  width: 435px;
  height: 580px;
}

.suitcase-board__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.board {
  position: absolute;
  top: 51px;
  left: 78px;
  width: 289px;
  height: 445px;
  display: grid;
  grid-template-columns: repeat(5, 53px);
  grid-template-rows: repeat(7, 53px);
  gap: 12px 6px;
  touch-action: none;
  z-index: 2;
}


.match-overlay {
  position: absolute;
  top: 51px;
  left: 78px;
  width: 289px;
  height: 445px;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
}

.match-combo {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(253, 241, 127, 0.95);
  border-radius: 10px;
  background: rgba(253, 241, 127, 0.22);
  box-shadow: 0 0 18px rgba(253, 241, 127, 0.55), inset 0 0 14px rgba(255, 255, 255, 0.25);
  animation: combo-flash 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.match-combo::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.55) 46%, transparent 78%);
  opacity: 0.65;
  transform: translateX(-30%);
  animation: combo-shine 760ms ease-out both;
}


.combo-callout {
  position: absolute;
  left: 50%;
  top: 20px;
  z-index: 8;
  min-width: 188px;
  padding: 8px 18px 10px;
  border-radius: 999px;
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.94);
}

.combo-callout--show {
  animation: combo-callout-pop 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tile {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.52));
  transform: translate(0, 0);
  will-change: transform, opacity, filter;
  transition: transform 150ms ease, filter 150ms ease, opacity 160ms ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.tile:not(:disabled):hover,
.tile--selected {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, 0.42));
}

.tile--selected {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}


.tile--dragging {
  z-index: 9;
  cursor: grabbing;
  filter: drop-shadow(0 12px 4px rgba(0, 0, 0, 0.36));
  opacity: 0.96;
  transform: translate(var(--drag-x, 0), var(--drag-y, 0)) scale(1.14) rotate(-3deg);
  transition: none;
}

.tile--falling {
  animation: tile-fall 390ms cubic-bezier(0.17, 0.84, 0.26, 1.12) both;
}
.tile--matched {
  animation: match-pop 260ms ease both;
}

.tile--shake {
  animation: shake 220ms ease both;
}

.tile--empty {
  opacity: 0;
}

.nickname-title {
  position: absolute;
  top: 233px;
  left: 47px;
  width: 299px;
  font-size: 36px;
}

.nickname-copy {
  position: absolute;
  top: 343px;
  left: 53px;
  width: 288px;
}

.name-field {
  position: absolute;
  top: 451px;
  left: 35px;
  width: 323px;
  height: 59px;
}

.name-field input {
  width: 100%;
  height: 100%;
  border: 2px solid var(--yellow);
  border-radius: 18px;
  background: rgba(5, 84, 119, 0.23);
  color: var(--yellow);
  padding: 0 18px;
  font-family: var(--serif);
  font-size: 15px;
  text-align: center;
}

.name-field input::placeholder {
  color: var(--yellow);
  opacity: 0.95;
}

.field-error {
  position: absolute;
  top: 516px;
  left: 47px;
  width: 299px;
  min-height: 22px;
  margin: 0;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.screen--nickname .figma-button {
  position: absolute;
  top: 609px;
  left: 79px;
  width: 235px;
}

.text-link {
  position: absolute;
  left: 50%;
  top: 722px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.42;
  text-decoration: underline;
  white-space: nowrap;
}

.result-hero {
  position: absolute;
  top: 105px;
  left: 18px;
  width: 352px;
  height: 142px;
  overflow: visible;
}

.result-hero img {
  position: absolute;
  left: 0;
  top: 0;
  width: 212px;
  height: 141px;
  object-fit: cover;
  filter: drop-shadow(0 16px 13.5px rgba(0, 0, 0, 0.15));
  z-index: 2;
}

.result-score-card {
  position: absolute;
  left: 138px;
  top: 25px;
  width: 214px;
  height: 96px;
  border: 0;
  border-radius: 14px;
  padding: 17px 0 0 92px;
  overflow: visible;
  font-family: var(--serif);
  text-transform: uppercase;
}

.result-score-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--yellow);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

.result-score-card span {
  position: relative;
  z-index: 3;
  display: block;
  font-size: 14px;
  font-style: italic;
}

.result-score-card strong {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: 5px;
  width: 116px;
  max-width: none;
  overflow: visible;
  color: var(--yellow);
  font-size: 31px;
  font-style: italic;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-overflow: clip;
  white-space: nowrap;
}
.result-copy {
  position: absolute;
  top: 263px;
  left: 44px;
  width: 305px;
}

.leaderboard {
  position: absolute;
  top: 352px;
  left: 21px;
  width: 350px;
  height: 208px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
  scrollbar-color: var(--yellow) rgba(0, 152, 194, 0.26);
  scrollbar-width: thin;
}

.leaderboard::-webkit-scrollbar {
  width: 6px;
}

.leaderboard::-webkit-scrollbar-track {
  background: rgba(0, 152, 194, 0.26);
  border-radius: 999px;
}

.leaderboard::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 999px;
}

.leaderboard-row {
  height: 42px;
  display: grid;
  grid-template-columns: 42px 1fr 82px;
  align-items: center;
  padding: 0 18px;
  color: var(--yellow);
  font-family: var(--serif);
}

.leaderboard-row--player {
  border: 1px solid var(--yellow);
  border-radius: 50px;
}

.leaderboard-row span,
.leaderboard-row em {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.leaderboard-row strong {
  overflow: hidden;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-row em {
  text-align: right;
}

.figma-button--wide {
  position: absolute;
  top: 591px;
  left: 25px;
  width: 343px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
}

.button-icon-svg {
  display: block;
  width: 24px;
  height: 24px;
}

.result-actions {
  position: absolute;
  top: 702px;
  left: 84px;
  width: 227px;
  height: 57px;
}

.result-actions__svg {
  display: block;
  width: 227px;
  height: 57px;
  pointer-events: none;
}

.result-hit {
  position: absolute;
  top: 0;
  width: 57px;
  height: 57px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.result-hit--share {
  left: 0;
}

.result-hit--down {
  left: 104px;
}

.result-hit--up {
  left: 169px;
}

.feedback-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.feedback-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3.85px);
}

.feedback-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 569px;
  border-radius: 36px 36px 0 0;
  background: var(--cream);
  color: var(--blue-text);
  padding-top: 45px;
}

.feedback-sheet h1 {
  width: 266px;
  margin: 0 auto 21px;
  color: var(--blue-text);
  font-size: 36px;
}

.feedback-sheet p {
  width: 288px;
  margin: 0 auto;
}

.feedback-field {
  position: absolute;
  top: 237px;
  left: 25px;
  width: 343px;
  height: 119px;
}

.feedback-field textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: 2px solid var(--blue-text);
  border-radius: 18px;
  background: transparent;
  color: var(--blue-text);
  padding: 17px 23px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.42;
}

.feedback-field textarea::placeholder {
  color: var(--blue-text);
  opacity: 0.9;
}

.figma-button--blue {
  position: absolute;
  top: 373px;
  left: 25px;
  width: 343px;
  border-color: var(--blue-text);
  color: var(--blue-text);
  font-size: 18px;
}

.text-link--blue {
  top: 492px;
  color: var(--blue-text);
}


@media (min-width: 768px) {
  .feedback-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
  }

  .feedback-backdrop {
    position: fixed;
    inset: 0;
    height: auto;
    background: rgba(0, 96, 125, 0.28);
    -webkit-backdrop-filter: blur(7px) saturate(0.86);
    backdrop-filter: blur(7px) saturate(0.86);
  }

  .feedback-sheet {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 376px;
    height: 544px;
    max-width: calc(100vw - 48px);
    border-radius: 32px;
    padding-top: 43px;
    box-shadow: 0 24px 64px rgba(0, 73, 96, 0.2);
  }

  .feedback-sheet h1 {
    width: 288px;
    margin-bottom: 21px;
    font-size: 36px;
    line-height: 1.12;
  }

  .feedback-sheet p {
    width: 286px;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
  }

  .feedback-field {
    top: 226px;
    left: 25px;
    width: 326px;
    height: 114px;
  }

  .feedback-field textarea {
    border-radius: 16px;
    padding: 17px 20px;
    font-size: 15px;
  }

  #feedback-send-button {
    top: 357px;
    left: 25px;
    width: 326px;
    height: 72px;
    font-size: 17px;
  }

  #feedback-close-button {
    top: 470px;
    font-size: 16px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


@keyframes plane-drift-left {
  0% {
    transform: translate3d(-10px, 0, 0) rotate(-1deg);
  }
  100% {
    transform: translate3d(18px, 10px, 0) rotate(1deg);
  }
}

@keyframes plane-drift-top {
  0% {
    transform: translate3d(12px, -8px, 0) rotate(1deg);
  }
  100% {
    transform: translate3d(-18px, 8px, 0) rotate(-1deg);
  }
}
@keyframes button-heartbeat {
  0%, 76%, 100% {
    transform: scale(1);
  }
  84% {
    transform: scale(1.055);
  }
  92% {
    transform: scale(0.985);
  }
}

@keyframes tutorial-target {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes hand-swipe {
  0%, 100% {
    transform: translateY(0) rotate(38deg);
  }
  45% {
    transform: translateY(-90px) rotate(38deg);
  }
}

@keyframes countdown-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  35% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


@keyframes combo-flash {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  18% {
    opacity: 1;
    transform: scale(1.03);
  }
  62% {
    opacity: 0.92;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes combo-shine {
  0% {
    transform: translateX(-44%);
  }
  100% {
    transform: translateX(44%);
  }
}
@keyframes score-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes match-pop {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  68% {
    transform: scale(1.2) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@media (max-width: 392px) {
  .app {
    justify-items: start;
  }
}


@keyframes combo-callout-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.9) rotate(-2deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.04) rotate(1deg);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.98) rotate(0deg);
  }
}
@keyframes tile-fall {
  0% {
    opacity: 0;
    transform: translateY(-74px) scale(0.96) rotate(-4deg);
    filter: drop-shadow(0 18px 3px rgba(0, 0, 0, 0.18));
  }
  72% {
    opacity: 1;
    transform: translateY(5px) scale(1.04) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.52));
  }
}