:root {
  --ink: #2d2438;
  --muted: #6f6579;
  --rose: #ff5b85;
  --coral: #ff8a66;
  --mint: #79dfc1;
  --lemon: #ffe17a;
  --sky: #86c5ff;
  --paper: #fff9ef;
  --panel: rgba(255, 255, 255, 0.76);
  --line: rgba(61, 43, 73, 0.14);
  --shadow: 0 24px 70px rgba(108, 55, 84, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 225, 122, 0.55), transparent 24rem),
    radial-gradient(circle at 85% 14%, rgba(134, 197, 255, 0.45), transparent 22rem),
    radial-gradient(circle at 70% 88%, rgba(121, 223, 193, 0.35), transparent 24rem),
    linear-gradient(135deg, #fff6fb 0%, #f2fbff 52%, #fff7e6 100%);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(255, 91, 133, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(45, 36, 56, 0.12) 0 1px, transparent 2px);
  background-position: 3rem 4rem, 9rem 8rem;
  background-size: 9rem 9rem, 13rem 13rem;
  animation: drift 18s linear infinite;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.topbar,
.machine,
.status-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 8px;
}

.kicker,
.status-label {
  margin: 0;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Baloo 2", system-ui, sans-serif;
  line-height: 1;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.9rem);
}

.actions {
  display: flex;
  gap: 10px;
}

.nav-button,
.icon-button,
.close-button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 -4px 0 rgba(45, 36, 56, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.icon-button,
.close-button {
  width: 44px;
}

.nav-button {
  padding: 0 14px;
  font-weight: 900;
}

.nav-button:hover,
.icon-button:hover,
.close-button:hover {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: inset 0 -4px 0 rgba(45, 36, 56, 0.08), 0 10px 22px rgba(255, 91, 133, 0.17);
}

.machine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.machine-copy h2 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 5.2rem);
}

.machine-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: #684200;
  background: var(--lemon);
  font-weight: 900;
}

.gacha-orb {
  display: grid;
  justify-items: center;
  gap: 0;
  transform: rotate(2deg);
}

.orb-glass {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.85), transparent 0 18%),
    linear-gradient(145deg, rgba(255, 91, 133, 0.26), rgba(134, 197, 255, 0.38), rgba(121, 223, 193, 0.38));
  box-shadow: inset 0 0 38px rgba(255, 255, 255, 0.65), 0 20px 42px rgba(80, 67, 108, 0.18);
  overflow: hidden;
  animation: bob 3.3s ease-in-out infinite;
}

.orb-base {
  width: min(82%, 260px);
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, #393052, #ff5b85);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 0 rgba(45, 36, 56, 0.12);
}

.mini-letter {
  position: absolute;
  width: 64px;
  height: 42px;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 9px 18px rgba(45, 36, 56, 0.15);
}

.mini-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  border-radius: inherit;
  background: rgba(255, 91, 133, 0.16);
}

.l1 {
  left: 38px;
  top: 80px;
  transform: rotate(-18deg);
}

.l2 {
  right: 48px;
  top: 118px;
  transform: rotate(22deg);
}

.l3 {
  left: 96px;
  bottom: 56px;
  transform: rotate(8deg);
}

.l4 {
  right: 92px;
  bottom: 92px;
  transform: rotate(-8deg);
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
}

.status-panel strong {
  display: block;
  margin-top: 2px;
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--coral));
  box-shadow: 0 12px 26px rgba(255, 91, 133, 0.25), inset 0 -4px 0 rgba(99, 19, 47, 0.16);
}

.ghost-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.danger-button {
  color: #fff;
  background: #b51d47;
  box-shadow: 0 12px 26px rgba(181, 29, 71, 0.2), inset 0 -4px 0 rgba(87, 12, 33, 0.16);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.letter-card {
  position: relative;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(108, 55, 84, 0.12);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.letter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(108, 55, 84, 0.18);
}

.letter-card.is-rolling {
  animation: cardWiggle 130ms linear infinite;
  filter: saturate(1.2);
}

.letter-card.is-highlight {
  outline: 4px solid rgba(255, 91, 133, 0.35);
  transform: translateY(-8px) scale(1.03);
}

.letter-card.is-picked {
  animation: pickPop 760ms ease both;
}

.card-button {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 16px;
  color: inherit;
  text-align: left;
  background: transparent;
}

.envelope {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(78%, 190px);
  aspect-ratio: 1.48;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(45, 36, 56, 0.14);
}

.envelope::before,
.envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.envelope::before {
  background: linear-gradient(135deg, transparent 49%, rgba(255, 91, 133, 0.18) 50%), linear-gradient(225deg, transparent 49%, rgba(255, 138, 102, 0.2) 50%);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}

.envelope::after {
  clip-path: polygon(0 0, 50% 58%, 100% 0);
  background: rgba(134, 197, 255, 0.2);
}

.seal {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: inset 0 -4px 0 rgba(111, 18, 48, 0.16);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 24px;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.seal::before {
  left: 8px;
  top: 5px;
  transform: rotate(-45deg);
}

.seal::after {
  right: 8px;
  top: 5px;
  transform: rotate(45deg);
}

.card-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.card-number {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-rarity {
  color: var(--rose);
}

.reveal-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(45, 36, 56, 0.34);
  backdrop-filter: blur(12px);
}

.reveal-layer.is-open {
  display: grid;
}

.payment-layer {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(45, 36, 56, 0.36);
  backdrop-filter: blur(12px);
}

.payment-layer.is-open {
  display: grid;
}

.payment-modal {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.payment-modal .close-button {
  position: absolute;
  right: -8px;
  top: -8px;
}

.payment-copy h2 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 8vw, 3.3rem);
}

.payment-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.payment-actions,
.qris-panel,
.qris-info {
  display: grid;
  gap: 12px;
}

.qris-panel {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
}

.qris-panel .primary-button {
  grid-column: 1 / -1;
}

.qris-code {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qris-code > span {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.qris-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
  width: 140px;
  aspect-ratio: 1;
  padding: 7px;
  border: 4px solid var(--ink);
  background: #fff;
}

.qris-grid i {
  border-radius: 2px;
  background: transparent;
}

.qris-grid i.is-filled {
  background: var(--ink);
}

.qris-info strong {
  font-size: 1.05rem;
}

.qris-info span,
.qris-info small {
  color: var(--muted);
  font-weight: 900;
  line-height: 1.5;
}

.reveal-card {
  position: relative;
  width: min(620px, 100%);
  min-height: 430px;
  border-radius: 8px;
}

.reveal-card .close-button {
  position: absolute;
  right: -8px;
  top: -8px;
  z-index: 4;
}

.tear-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  perspective: 1000px;
}

.paper-piece,
.paper-message {
  position: absolute;
  width: min(500px, 86vw);
  height: min(520px, 72vh);
  min-height: 320px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 91, 133, 0.13) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  box-shadow: 0 24px 60px rgba(45, 36, 56, 0.24);
}

.paper-piece {
  z-index: 3;
  overflow: hidden;
}

.paper-piece::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 91, 133, 0.16) 50%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(134, 197, 255, 0.14) 50%, transparent 52%);
}

.left-piece {
  clip-path: polygon(0 0, 54% 0, 45% 12%, 56% 24%, 44% 38%, 54% 52%, 44% 67%, 54% 82%, 46% 100%, 0 100%);
}

.right-piece {
  clip-path: polygon(53% 0, 100% 0, 100% 100%, 45% 100%, 55% 84%, 45% 69%, 56% 54%, 45% 39%, 55% 25%, 45% 12%);
}

.tear-stage.is-tearing .left-piece {
  animation: tearLeft 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.tear-stage.is-tearing .right-piece {
  animation: tearRight 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.paper-message {
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  padding: clamp(28px, 7vw, 48px);
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  overflow: hidden;
}

.tear-stage.is-tearing .paper-message {
  animation: revealMessage 800ms ease 560ms forwards;
}

.rarity {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  color: #684200;
  background: var(--lemon);
  font-weight: 900;
}

.paper-message h2 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 7vw, 3.8rem);
}

.paper-message p {
  min-height: 0;
  margin-bottom: 0;
  padding-right: 8px;
  color: #4c4059;
  font-size: 1.08rem;
  line-height: 1.7;
  overflow: auto;
  white-space: pre-line;
  scrollbar-color: rgba(255, 91, 133, 0.55) rgba(255, 255, 255, 0.45);
  scrollbar-width: thin;
}

.paper-message p::-webkit-scrollbar {
  width: 8px;
}

.paper-message p::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.paper-message p::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 91, 133, 0.55);
}

.editor-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 28px));
  transition: transform 300ms ease;
}

.editor-panel.is-open {
  transform: translateX(0);
}

.editor-head,
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.editor-head h2 {
  margin: 3px 0 0;
  font-size: 1.7rem;
}

.editor-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.editor-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.editor-item {
  display: grid;
  gap: 8px;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 0.55fr);
  gap: 8px;
}

.editor-item label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.editor-item input,
.editor-item textarea {
  min-height: 96px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fffaf4;
  outline: none;
}

.editor-item input {
  min-height: 42px;
}

.editor-item textarea {
  resize: vertical;
}

.editor-item input:focus,
.editor-item textarea:focus {
  border-color: rgba(255, 91, 133, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 91, 133, 0.12);
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: -22px auto 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.admin-shell {
  padding-bottom: 28px;
}

.admin-hero {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}

.admin-meter {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(145deg, rgba(255, 91, 133, 0.2), rgba(121, 223, 193, 0.24));
  box-shadow: inset 0 -8px 0 rgba(45, 36, 56, 0.05);
  text-align: center;
}

.admin-meter span {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.8;
}

.admin-meter strong,
.admin-meter small {
  display: block;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.settings-panel {
  grid-column: 1 / -1;
}

.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact {
  padding: 0 0 12px;
  border-bottom: 0;
}

.panel-head h2 {
  margin: 3px 0 0;
  font-size: 1.7rem;
}

.letter-form-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  padding: 16px;
  overflow: auto;
}

.admin-letter-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.letter-item-head,
.word-row,
.share-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.admin-letter-item input,
.admin-letter-item textarea,
.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fffaf4;
  outline: none;
}

.admin-letter-item textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-letter-item input:focus,
.admin-letter-item textarea:focus,
.text-input:focus {
  border-color: rgba(255, 91, 133, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 91, 133, 0.12);
}

.word-row {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.word-row.is-over {
  color: #b51d47;
}

.form-status {
  color: var(--muted);
  font-weight: 900;
}

.share-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.share-create-panel,
.current-domain {
  display: grid;
  gap: 12px;
}

.current-domain {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.current-domain strong,
.current-domain a {
  overflow-wrap: anywhere;
}

.current-domain a {
  color: var(--rose);
  font-weight: 900;
}

.current-domain p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.settings-body strong {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1;
}

.share-panel > .panel-head {
  margin: 0 -16px;
}

.field-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.slug-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.slug-row span {
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--rose);
  font-weight: 900;
}

.availability,
.share-result,
.empty-state {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.availability.is-available {
  border-color: rgba(30, 139, 92, 0.35);
  background: rgba(121, 223, 193, 0.22);
}

.availability.is-unavailable {
  border-color: rgba(181, 29, 71, 0.3);
  background: rgba(255, 91, 133, 0.14);
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-result {
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.share-result a,
.share-item a {
  color: var(--rose);
  font-weight: 900;
}

.share-result small,
.share-item small {
  color: var(--muted);
}

.share-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.share-item {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.share-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

@keyframes drift {
  to {
    background-position: 12rem 13rem, 0 20rem;
  }
}

@keyframes bob {
  50% {
    transform: translateY(-9px) rotate(-2deg);
  }
}

@keyframes cardWiggle {
  50% {
    transform: translateY(-4px) rotate(1.4deg);
  }
}

@keyframes pickPop {
  40% {
    transform: translateY(-18px) scale(1.08) rotate(-2deg);
  }
  100% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes tearLeft {
  28% {
    transform: translateX(-10px) rotate(-3deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-260px) rotate(-18deg);
  }
}

@keyframes tearRight {
  28% {
    transform: translateX(10px) rotate(3deg);
  }
  100% {
    opacity: 0;
    transform: translateX(260px) rotate(18deg);
  }
}

@keyframes revealMessage {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 22px, 620px);
    padding-top: 12px;
  }

  .topbar,
  .status-panel {
    align-items: flex-start;
  }

  .topbar {
    padding: 16px;
  }

  .machine {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .admin-hero,
  .admin-layout,
  .share-actions {
    grid-template-columns: 1fr;
  }

  .gacha-orb {
    order: -1;
  }

  .orb-glass {
    max-width: 230px;
  }

  .status-panel {
    flex-direction: column;
  }

  .status-panel .primary-button {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .letter-card {
    min-height: 166px;
  }

  .editor-panel {
    inset: 10px;
    width: auto;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .actions,
  .nav-button {
    width: 100%;
  }

  .actions {
    justify-content: stretch;
  }

  .icon-button {
    flex: 0 0 44px;
  }

  .letter-form-list {
    max-height: none;
  }

  .letter-item-head,
  .word-row,
  .share-item,
  .editor-actions,
  .qris-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .qris-panel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .qris-info {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
