:root {
  --page-top: #f0dcb4;
  --page-bottom: #bd9860;
  --shell-dark: #49341f;
  --shell-mid: #775636;
  --shell-light: #d7bb8b;
  --screen-bezel: #2f241a;
  --panel-bg: rgba(40, 23, 11, 0.72);
  --panel-border: rgba(255, 241, 205, 0.18);
  --text-main: #fff7d8;
  --text-dim: #d7c193;
  --meter-bg: #3f2b1e;
  --meter-fill-start: #9be564;
  --meter-fill-end: #ffd447;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(circle at top, rgba(255, 244, 196, 0.65), transparent 32%),
    linear-gradient(180deg, var(--page-top), var(--page-bottom));
  color: var(--text-main);
  font-family: "Press Start 2P", monospace;
  min-height: 100vh;
  min-height: 100svh;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 24px;
  overflow-x: clip;
}

.handheld-frame {
  width: min(100%, 1040px);
  max-width: 1040px;
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 5px solid rgba(64, 42, 22, 0.88);
  border-radius: 28px;
  background:
    linear-gradient(145deg, var(--shell-light), var(--shell-mid) 45%, var(--shell-dark));
  box-shadow:
    0 18px 40px rgba(34, 19, 10, 0.28),
    inset 0 2px 0 rgba(255, 245, 219, 0.5),
    inset 0 -3px 0 rgba(24, 11, 4, 0.3);
  overflow-x: clip;
}

.game-primary,
.secondary-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.hud-card,
.collection-panel {
  padding: 14px 12px;
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hud-card-wide {
  min-width: 0;
  grid-column: span 2;
}

.hud-card-control {
  display: grid;
  gap: 10px;
}

.hud-label,
.meter-text,
.legend-bar p,
.collection-copy,
.hud-detail {
  font-size: 0.58rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.hud-value {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
}

.hud-value-small {
  font-size: 0.54rem;
}

.basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.basket-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 248, 221, 0.14);
  border-radius: 999px;
  background: rgba(92, 132, 67, 0.22);
  color: #dff6c5;
  font-size: 0.42rem;
  line-height: 1;
  text-transform: uppercase;
}

.hud-detail {
  display: block;
  margin-top: 8px;
}

#aide-card[data-tax-level="2"] .basket-badge {
  background: rgba(92, 132, 67, 0.22);
  color: #dff6c5;
}

#aide-card[data-tax-level="3"] .basket-badge {
  background: rgba(174, 146, 53, 0.24);
  color: #fff3bb;
}

#aide-card[data-tax-level="4"] .basket-badge {
  background: rgba(192, 116, 39, 0.24);
  color: #ffd8a9;
}

#aide-card[data-tax-level="5"] .basket-badge {
  background: rgba(183, 78, 49, 0.28);
  color: #ffd0b9;
}

#aide-card[data-tax-level="6"] .basket-badge {
  background: rgba(148, 53, 49, 0.34);
  color: #ffd0d0;
}

.meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meter-track {
  height: 16px;
  margin-top: 12px;
  border: 2px solid rgba(255, 248, 221, 0.08);
  border-radius: 999px;
  background: var(--meter-bg);
  overflow: hidden;
}

.meter-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--meter-fill-start), var(--meter-fill-end));
  box-shadow: 0 0 12px rgba(255, 212, 71, 0.45);
  transition: width 150ms ease-out;
}

.collection-panel {
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.collection-toggle {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.collection-title {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

.collection-copy {
  margin: 8px 0 0;
}

.collection-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}

.collection-count {
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-main);
  white-space: nowrap;
}

.collection-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 150ms ease;
}

.collection-panel.is-open .collection-chevron {
  transform: rotate(180deg);
}

.collection-drawer {
  margin-top: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.collection-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84px, 84px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.collection-slot {
  position: relative;
  min-width: 0;
  min-height: 98px;
  padding: 8px 6px 7px;
  border: 2px solid rgba(255, 248, 221, 0.08);
  border-radius: 12px;
  background: rgba(24, 13, 8, 0.6);
  color: var(--text-main);
  display: grid;
  gap: 5px;
  justify-items: center;
  align-content: start;
  text-align: center;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    opacity 120ms ease;
}

.collection-slot.unlocked {
  border-color: var(--slot-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%),
    rgba(33, 18, 10, 0.84);
}

.collection-slot.equipped {
  border-color: var(--slot-main);
  box-shadow:
    0 0 0 2px rgba(255, 236, 160, 0.14) inset,
    0 0 18px rgba(255, 215, 110, 0.14);
  transform: translateY(-1px);
}

.collection-slot.locked {
  opacity: 0.5;
}

.collection-slot-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--slot-main), var(--slot-trim));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.collection-slot-canvas {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.collection-slot.locked .collection-slot-icon {
  background: linear-gradient(180deg, rgba(160, 145, 117, 0.5), rgba(90, 73, 53, 0.6));
}

.collection-slot.locked .collection-slot-canvas {
  filter: grayscale(1) saturate(0.15) brightness(0.9);
}

.collection-slot-name {
  font-size: 0.42rem;
  line-height: 1.4;
  word-break: break-word;
  min-height: 2.8em;
}

.collection-slot-order {
  font-size: 0.38rem;
  line-height: 1;
  color: var(--text-dim);
}

.collection-slot-lock {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 19, 12, 0.9);
  color: var(--text-main);
  font-size: 0.34rem;
  line-height: 1;
  border: 1px solid rgba(255, 248, 221, 0.1);
}

.collection-slot.unlocked .collection-slot-lock {
  opacity: 0;
}

.playfield-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 6px solid var(--screen-bezel);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 15, 10, 0.2), transparent 16%),
    #1e3511;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 0 30px rgba(0, 0, 0, 0.24);
  touch-action: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px
    );
  mix-blend-mode: soft-light;
}

.flash-message {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(86%, 520px);
  padding: 12px 18px;
  border: 3px solid rgba(255, 244, 192, 0.65);
  border-radius: 14px;
  background: rgba(74, 36, 86, 0.86);
  color: #fff7c8;
  font-size: 0.65rem;
  line-height: 1.7;
  text-align: center;
  transform: translate(-50%, -24px) scale(0.94);
  opacity: 0;
  pointer-events: none;
  text-shadow:
    0 0 6px rgba(255, 243, 177, 0.85),
    0 0 12px rgba(255, 146, 232, 0.35);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.08) inset,
    0 0 24px rgba(255, 235, 166, 0.25);
}

.flash-message.show {
  animation: flash-pop 1.4s ease-out forwards;
}

.flash-message.warning {
  background: rgba(122, 48, 32, 0.9);
  color: #ffe0bb;
}

.touch-controls[hidden] {
  display: none;
}

.touch-controls {
  justify-self: center;
  width: min(100%, 480px);
}

.touch-hint {
  margin: 0;
  padding: 10px 16px;
  border: 2px solid rgba(255, 248, 221, 0.12);
  border-radius: 999px;
  background: rgba(42, 25, 13, 0.68);
  color: var(--text-dim);
  font-size: 0.54rem;
  line-height: 1.6;
  text-align: center;
}

.legend-bar {
  display: grid;
  gap: 8px;
  padding: 0 8px 6px;
}

.legend-copy {
  display: grid;
  gap: 8px;
}

.legend-touch {
  display: none;
}

.legend-bar p {
  margin: 0;
}

body[data-input-mode="touch"] .legend-desktop {
  display: none;
}

body[data-input-mode="touch"] .legend-touch {
  display: grid;
}

kbd {
  padding: 2px 5px;
  border: 1px solid rgba(255, 248, 221, 0.14);
  border-radius: 5px;
  background: rgba(46, 31, 19, 0.62);
  color: var(--text-main);
  font: inherit;
  font-size: 0.85em;
}

.control-button {
  width: 100%;
  border: 2px solid rgba(255, 248, 221, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(253, 229, 151, 0.95), rgba(205, 148, 61, 0.96));
  color: #3b240d;
  cursor: pointer;
  font-size: 0.52rem;
  line-height: 1.5;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 4px 12px rgba(19, 10, 4, 0.18);
}

.control-button:hover {
  transform: translateY(-1px);
}

.control-button:active {
  transform: translateY(1px);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.flag-toggle {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(255, 248, 221, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(28, 16, 9, 0.78)),
    rgba(24, 13, 8, 0.78);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(19, 10, 4, 0.18);
}

.flag-toggle:hover {
  transform: translateY(-1px);
}

.flag-toggle:active {
  transform: translateY(1px);
}

.flag-toggle:focus {
  outline: 2px solid rgba(255, 220, 122, 0.46);
  outline-offset: 2px;
}

.flag-canvas {
  width: 32px;
  height: 24px;
  image-rendering: pixelated;
  border: 2px solid rgba(255, 248, 221, 0.16);
  border-radius: 4px;
  background: rgba(20, 12, 8, 0.44);
  flex: 0 0 auto;
}

.flag-code {
  font-size: 0.6rem;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.concept-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.gallery-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.gallery-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gallery-summary::-webkit-details-marker {
  display: none;
}

.gallery-summary::after {
  content: "▾";
  font-size: 0.72rem;
  line-height: 1;
  color: var(--text-dim);
  transition: transform 150ms ease;
}

.gallery-panel[open] > .gallery-summary::after {
  transform: rotate(180deg);
}

.gallery-viewport {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.gallery-controls[hidden] {
  display: none;
}

.gallery-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-button {
  min-width: 72px;
  border: 2px solid rgba(255, 248, 221, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(38, 22, 12, 0.78);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.46rem;
  line-height: 1.4;
}

.gallery-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 248, 221, 0.22);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: rgba(255, 220, 118, 0.88);
}

.concept-card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(33, 20, 12, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.concept-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.concept-card figcaption {
  padding: 12px;
  font-size: 0.52rem;
  line-height: 1.6;
  color: var(--text-dim);
}

@keyframes flash-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -28px) scale(0.88);
  }

  15% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.02);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.98);
  }
}

@media (max-width: 920px) {
  .handheld-frame {
    padding: 16px;
    border-radius: 22px;
  }

  .hud-card-wide {
    grid-column: auto;
  }

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

  .hud-value-small {
    font-size: 0.52rem;
  }

  .flash-message {
    font-size: 0.52rem;
    width: 90%;
  }

  .gallery-viewport {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-viewport::-webkit-scrollbar {
    display: none;
  }

  .gallery-controls {
    display: flex;
  }

  .concept-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 680px) {
  .collection-header {
    align-items: start;
  }

  .collection-slot {
    min-height: 92px;
  }

  .collection-meta {
    gap: 6px;
  }

  .collection-grid {
    grid-auto-columns: minmax(78px, 78px);
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 12px;
  }

  .handheld-frame {
    gap: 14px;
    padding: 12px;
  }

  .hud-card,
  .collection-panel {
    padding: 12px 10px;
  }

  .legend-bar {
    padding: 0 2px 4px;
  }

  .hud-label,
  .meter-text,
  .legend-bar p,
  .collection-copy,
  .hud-detail {
    font-size: 0.5rem;
  }

  .collection-title {
    font-size: 0.62rem;
  }

  .collection-count {
    font-size: 0.58rem;
  }

  .collection-grid {
    grid-auto-columns: minmax(74px, 74px);
  }

  .collection-slot-name {
    font-size: 0.38rem;
  }

  .control-button {
    font-size: 0.48rem;
  }

  .concept-card figcaption {
    font-size: 0.48rem;
  }
}

@media (max-width: 680px) {
  body.touch-device .page-shell {
    min-height: 100svh;
    padding:
      calc(8px + var(--safe-top))
      calc(8px + var(--safe-right))
      calc(10px + var(--safe-bottom))
      calc(8px + var(--safe-left));
  }

  body.touch-device .handheld-frame {
    width: 100%;
    gap: 10px;
    padding: 10px;
    border-width: 4px;
    border-radius: 18px;
  }

  body.touch-device .game-primary,
  body.touch-device .secondary-stack {
    gap: 10px;
  }

  body.touch-device .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.touch-device .hud-card,
  body.touch-device .collection-panel {
    padding: 10px 9px;
    border-radius: 12px;
  }

  body.touch-device .hud-card-wide {
    grid-column: 1 / -1;
  }

  body.touch-device .hud-label,
  body.touch-device .meter-text,
  body.touch-device .collection-copy,
  body.touch-device .hud-detail {
    font-size: 0.46rem;
    line-height: 1.45;
  }

  body.touch-device .hud-value {
    margin-top: 8px;
    font-size: 0.68rem;
  }

  body.touch-device .basket-badge {
    min-width: 54px;
    padding: 3px 6px;
    font-size: 0.34rem;
  }

  body.touch-device .meter-track {
    height: 14px;
    margin-top: 10px;
  }

  body.touch-device .playfield-wrapper {
    border-width: 4px;
    border-radius: 16px;
  }

  body.touch-device .touch-controls {
    width: 100%;
  }

  body.touch-device .touch-hint {
    padding: 8px 12px;
    font-size: 0.46rem;
    line-height: 1.45;
  }

  body.touch-device .legend-bar {
    display: none;
  }

  body.touch-device .gallery-panel {
    gap: 10px;
  }

  body.touch-device .gallery-summary {
    display: flex;
    font-size: 0.54rem;
    line-height: 1.4;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.touch-device .page-shell {
    min-height: 100svh;
    padding:
      calc(6px + var(--safe-top))
      calc(8px + var(--safe-right))
      calc(6px + var(--safe-bottom))
      calc(8px + var(--safe-left));
  }

  body.touch-device .handheld-frame {
    width: 100%;
    gap: 10px;
    padding: 10px;
    border-width: 3px;
    border-radius: 18px;
  }

  body.touch-device .game-primary {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "playfield hud";
    gap: 10px;
    align-items: start;
  }

  body.touch-device .secondary-stack {
    gap: 10px;
  }

  body.touch-device .hud {
    grid-area: hud;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: start;
  }

  body.touch-device .hud-card,
  body.touch-device .collection-panel {
    padding: 6px 8px;
    border-radius: 10px;
  }

  body.touch-device .hud-card-wide {
    grid-column: auto;
  }

  body.touch-device .hud-label,
  body.touch-device .meter-text,
  body.touch-device .collection-copy,
  body.touch-device .hud-detail {
    font-size: 0.4rem;
    line-height: 1.4;
  }

  body.touch-device .hud-value {
    margin-top: 6px;
    font-size: 0.58rem;
  }

  body.touch-device .basket-badge {
    min-width: 48px;
    padding: 3px 5px;
    font-size: 0.3rem;
  }

  body.touch-device .meter-track {
    height: 12px;
    margin-top: 8px;
  }

  body.touch-device .playfield-wrapper {
    grid-area: playfield;
    justify-self: stretch;
    align-self: start;
    width: 100%;
    max-width: 100%;
    max-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 32px);
    border-width: 4px;
    border-radius: 16px;
  }

  body.touch-device .touch-controls {
    grid-area: touch;
    display: none;
  }

  body.touch-device .legend-bar {
    display: none;
  }

  body.touch-device .collection-title {
    font-size: 0.56rem;
  }

  body.touch-device .collection-copy {
    margin-top: 6px;
  }

  body.touch-device .collection-count {
    font-size: 0.54rem;
  }

  body.touch-device .collection-grid {
    grid-auto-columns: minmax(70px, 70px);
  }

  body.touch-device .gallery-panel {
    gap: 10px;
  }

  body.touch-device .gallery-summary {
    display: flex;
    font-size: 0.5rem;
    line-height: 1.4;
  }
}

.rotate-hint {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(20, 14, 8, 0.97);
}

.rotate-hint[hidden] {
  display: none;
}

.rotate-hint-content {
  display: grid;
  gap: 20px;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.rotate-icon {
  font-size: 4rem;
  color: var(--text-bright);
  animation: rotate-pulse 2s ease-in-out infinite;
}

.rotate-hint-text {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-main);
  max-width: 220px;
}

.rotate-hint-subtext {
  font-size: 0.5rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin-top: 8px;
}

.rotate-hint-subtext {
  font-size: 0.5rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin-top: 8px;
}

@keyframes rotate-pulse {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-30deg); }
  75% { transform: rotate(30deg); }
}
