#app .gm-screen { --gm-ink: #183f2c; --gm-paper: #fff9e9; --gm-lime: #dbf771; position: relative; isolation: isolate; min-height: 100svh; color: var(--gm-ink); background: #f3efdf; overflow: hidden; }
#app .gm-content { position: relative; z-index: 2; width: 100%; max-width: 460px; margin: 0 auto; padding: 22px 22px 36px; box-sizing: border-box; }
#app .gm-screen-back { position: absolute; z-index: 6; left: 17px; top: 83px; width: 36px; height: 36px; padding: 0; border: 1px solid #21482f55; border-radius: 50%; color: #21482f; background: #fff9e9; font: inherit; font-size: 23px; cursor: pointer; }
#app .gm-screen:has(.gm-screen-back) .gm-content { padding-top: 56px; }
#app .gm-eyebrow { margin: 0 0 11px; color: #4c6246; font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: .18em; }
#app .gm-cloud-title { margin: 0; padding: 0; color: var(--gm-ink); font-size: clamp(26px,7.3vw,34px); line-height: 1.4; letter-spacing: .02em; font-weight: 650; text-align: left; text-shadow: none; transform: none; background: none; }
#app .gm-compose-art { position: relative; height: 135px; width: 240px; margin: 3px 2px -2px auto; pointer-events: none; }
#app .gm-compose-art > svg:first-child { position: absolute; left: 10px; bottom: 0; width: 143px; height: 150px; z-index: 2; }
#app .gm-compose-art > svg:last-child { position: absolute; right: 8px; bottom: 0; width: 74px; height: 128px; transform: rotate(6deg); }
#game-stage #app .gm-compose .gm-compose-art { width: 100%; }
#game-stage #app .gm-compose .gm-compose-art .mailbox { left: 23px; }
#game-stage #app .gm-compose .gm-compose-art .turtle { left: calc(50% - 52px); }
#game-stage #app .gm-compose .gm-compose-art .r9-wardrobe-object { right: 9px; pointer-events: auto; }
#app .gm-paper { position: relative; margin: 0; padding: 23px 20px 18px; border: 1px solid #d4d1bb; border-radius: 0; color: var(--gm-ink); background: var(--gm-paper); box-shadow: 5px 7px 0 #d8ddc3; }
#app .gm-step-track { display: flex; gap: 10px; align-items: center; margin-bottom: 23px; font-size: 12px; color: #76806b; }
#app .gm-step-track i { flex: 1; border-top: 1px solid #c2c9ac; }
#app .gm-step-track span[aria-current="step"] { font-weight: 700; color: #214b32; }
#app .gm-step-track span[aria-current="step"]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #527638; }
#app .gm-address-group { margin: 0 0 25px; padding: 0; min-width: 0; border: 0; }
#app .gm-address-group legend { width: 100%; margin-bottom: 12px; padding: 0 0 8px; border-bottom: 1px solid #b4bd9e; color: #234d32; font-size: 15px; font-weight: 700; }
#app .gm-address-row { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: start; gap: 8px; margin: 12px 0; }
#app .gm-address-row > label { padding-top: 12px; color: #476044; font-size: 12px; line-height: 1.5; }
#app .gm-address-row input, #app .gm-address-row select { min-width: 0; width: 100%; height: 44px; padding: 9px 10px; border: 0; border-bottom: 1px solid #a7b292; border-radius: 0; color: #234832; background: #ecefdc; box-shadow: none; font: inherit; font-size: 14px; box-sizing: border-box; }
#app .gm-address-row .city-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: 100%; min-width: 0; gap: 6px; }
#app .gm-address-row select { padding-left: 6px; padding-right: 3px; font-size: 12px; }
#app .gm-address-row input::placeholder { color: #7c856e; }
#app .gm-primary, #app .gm-secondary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 12px 15px; border: 1px solid #23482f; border-radius: 2px; color: #fdf8e9; background: #214b32; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; text-align: center; cursor: pointer; box-shadow: none; }
#app .gm-primary { width: 100%; }
#app .gm-primary > span { font-size: 20px; line-height: 1; }
#app .gm-secondary { color: #254b32; background: transparent; }
#app .gm-primary:disabled { opacity: .55; cursor: wait; }
#app .gm-primary:focus-visible, #app .gm-secondary:focus-visible, #app .gm-mode:focus-visible, #app .gm-address-row input:focus-visible, #app .gm-address-row select:focus-visible, #app .gm-letter-paper textarea:focus-visible { outline: 3px solid #8dab4b; outline-offset: 3px; }
#app .gm-letter-heading { margin-bottom: 13px; font-size: 15px; line-height: 1.8; }
#app .gm-letter-heading b { font-weight: 600; }
#app .gm-letter-paper { position: relative; min-height: 260px; padding: 0 0 30px; }
#app .gm-letter-paper textarea { position: relative; z-index: 2; display: block; width: 100%; min-height: 244px; padding: 0; resize: vertical; border: 0; border-radius: 0; color: #244531; background: repeating-linear-gradient(transparent 0 31px,#c6cbb9 32px,transparent 33px); font: inherit; font-size: 15px; line-height: 33px; box-sizing: border-box; }
#app .gm-letter-paper textarea::placeholder { color: #869077; }
#app .gm-postmark { position: absolute; right: 0; bottom: 30px; width: 52px; height: 52px; border: 1px solid #809764; border-radius: 50%; color: #809764; display: grid; place-items: center; font: italic 24px Georgia,serif; transform: rotate(-14deg); opacity: .5; pointer-events: none; }
#app .gm-count { margin-top: 7px; color: #647557; text-align: right; font-size: 11px; }
#app .gm-count .counter { position: static; font: inherit; }
#app .gm-letter-actions { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 9px; }
#app .gm-letter-actions .gm-primary { padding-inline: 8px; }
#app .gm-text-button { display: block; margin: 17px auto 0; padding: 9px; border: 0; color: #4d6545; background: none; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#app .gm-form-status { min-height: 18px; margin: 12px 0 0; font-size: 11px; line-height: 1.7; color: #647557; text-align: center; }
#app .gm-form-status:empty { display: none; }
#app #form-error { color: #a44631; }
#app .gm-envelope-edge { position: relative; height: 31px; margin: 0 3px; border: 1px solid #c8cbb3; border-top: 0; background: #e1e5cd; clip-path: polygon(0 0,100% 0,100% 100%,50% 68%,0 100%); }
#app .gm-envelope-edge span { display: block; color: #566c44; text-align: center; font: italic 15px Georgia,serif; }
#app .gm-garden { position: absolute; inset: auto 0 0; z-index: 0; height: 170px; pointer-events: none; background: repeating-linear-gradient(78deg,transparent 0 13px,#79925b1c 14px,transparent 16px 24px), linear-gradient(transparent,#dbe2c9); mask-image: linear-gradient(transparent,#000); }
#app .gm-route { display: flex; align-items: center; gap: 13px; margin: 23px 0 22px; font-size: 14px; }
#app .gm-route > span { max-width: 40%; overflow-wrap: anywhere; }
#app .gm-route > i { position: relative; flex: 1; height: 1px; background: #94a47a; }
#app .gm-route > i::after { position: absolute; right: 0; top: -3px; content: ''; width: 6px; height: 6px; border-top: 1px solid #94a47a; border-right: 1px solid #94a47a; transform: rotate(45deg); }
#app .gm-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; }
#app .gm-mode { position: relative; min-width: 0; min-height: 232px; padding: 14px 10px 12px; border: 1px solid #a4b190; border-radius: 0; color: #24472f; background: #fff9e9; box-shadow: 3px 4px 0 #d8ddc3; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
#app .gm-mode.selected { border: 2px solid #315936; padding: 13px 9px 11px; background: #ebf1d2; box-shadow: 3px 4px 0 #aabd81; }
#app .gm-mode-number { position: absolute; top: 12px; left: 12px; color: #6d7e59; font: 12px Georgia,serif; }
#app .gm-mode-check { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border: 1px solid #81976a; border-radius: 50%; }
#app .gm-mode.selected .gm-mode-check { background: #315936; }
#app .gm-mode.selected .gm-mode-check::after { content: ''; position: absolute; width: 7px; height: 4px; top: 4px; left: 3px; border-bottom: 1px solid #fff9e9; border-left: 1px solid #fff9e9; transform: rotate(-45deg); }
#app .gm-mode-art { display: block; height: 138px; width: 100%; margin: 8px 0 0; }
#app .gm-mode-art > svg { display: block; width: 100%; height: 100%; overflow: visible; }
#app .gm-mode h2 { margin: 2px 0 3px; color: #24472f; font-size: 16px; line-height: 1.5; }
#app .gm-mode .mode-time { display: block; min-height: 17px; margin: 0; color: #647651; font-size: 11px; }
#app .gm-mode-choice { display: flex; justify-content: space-between; margin-top: 9px; padding-top: 7px; border-top: 1px solid #bec7a7; color: #577046; font-size: 10px; }
#app .gm-mode.selected .gm-mode-choice { color: #24472f; font-weight: 700; }
#app .gm-eta { padding: 18px 0 16px; margin: 0; color: #4a6341; font-size: 12px; text-align: center; background: none; border: 0; }
#app .gm-send-button { background: #d9ef99; color: #23452e; }
#app .gm-sending { color: #fff9e9; background: #173f2c; }
#app .gm-sending .gm-eyebrow { color: #c1d69d; }
#app .gm-sending .gm-cloud-title { color: #fff9e9; font-size: 28px; }
#app .gm-sending .gm-content { padding-inline: 18px; }
#app .gm-sending .gm-garden { opacity: .25; }
#app .gm-send-scene { position: relative; width: 100%; max-width: 360px; aspect-ratio: 350 / 400; height: auto; margin: 8px auto 0; isolation: isolate; }
#app .gm-folding-letter { position: absolute; top: 8%; left: 29%; width: 42%; height: 31%; z-index: 8; perspective: 600px; animation: r7-paper-body 3300ms linear both; }
#app .gm-sheet { position: absolute; inset: 0; padding: 15px 13px; color: #30543a; background: #fff9e9; box-shadow: 0 6px 18px #071f1944; }
#app .gm-sheet > span { display: block; font-size: 10px; margin-bottom: 14px; }
#app .gm-sheet > i { display: block; height: 1px; margin-top: 11px; background: #acb494; }
#app .gm-fold { position: absolute; left: 0; right: 0; height: 34%; background: #f1e9ce; backface-visibility: visible; }
#app .gm-fold-top { top: 0; transform-origin: 50% 100%; animation: r7-paper-top 3300ms linear both; }
#app .gm-fold-bottom { bottom: 0; transform-origin: 50% 0; background: #e6dfc3; animation: r7-paper-bottom 3300ms linear both; }
#app .gm-moving-envelope { position: absolute; width: 17%; aspect-ratio: 1.55; top: 0; left: 0; opacity: 0; z-index: 8; pointer-events: none; will-change: transform, opacity; }
#app .gm-envelope-token { display: block; width: 100%; height: 100%; object-fit: contain; }
#app .gm-send-mailbox { position: absolute; z-index: 5; top: 22%; left: 1%; width: 30%; aspect-ratio: 220 / 260; }
#app .gm-send-mailbox > svg { display: block; width: 100%; height: 100%; overflow: visible; }
#app .gm-receiving-turtle { position: absolute; z-index: 6; right: 0; top: 36%; width: 58%; aspect-ratio: 320 / 340; animation: r7-carrier-route 3300ms linear both; }
#app .gm-receiving-turtle > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
#app .gm-send-ground { position: absolute; z-index: 0; left: 0; right: 0; bottom: 12%; height: 15%; border-top: 1px solid #cde978; border-radius: 50%; transform: rotate(-8deg); background: #295336; }
#app .gm-send-stages { position: absolute; display: flex; justify-content: space-between; gap: 5px; left: 0; right: 0; bottom: 0; list-style: none; padding: 0; margin: 0; color: #bbd09e; font-size: 10px; }
#app .gm-send-stages li { padding-top: 8px; border-top: 1px solid #6e8b50; }
#app .gm-send-scene[data-phase="fold"] li[data-phase="fold"], #app .gm-send-scene[data-phase="envelope"] li[data-phase="fold"], #app .gm-send-scene[data-phase="deposit"] li[data-phase="deposit"], #app .gm-send-scene[data-phase="pickup"] li[data-phase="pickup"], #app .gm-send-scene[data-phase="bag"] li[data-phase="pickup"], #app .gm-send-scene[data-phase="depart"] li[data-phase="depart"] { color: #e9ff9e; border-color: #e9ff9e; }
#app .gm-send-scene:is([data-mode="rocket"],[data-mode="broom"]) .gm-receiving-turtle { animation-name: r7-rocket-route; }
#app .gm-success-route { position: relative; display: flex; align-items: end; justify-content: space-between; min-height: 150px; margin: 6px 0 0; padding: 0 6px 16px; }
#app .gm-success-route > span { position: relative; z-index: 2; max-width: 28%; padding-bottom: 9px; overflow-wrap: anywhere; font-size: 12px; }
#app .gm-success-turtle { position: absolute; width: 150px; height: 155px; left: calc(50% - 75px); bottom: 0; }
#app .gm-success-turtle > svg { display: block; width: 100%; height: 100%; }
#app .gm-success-route > i { position: absolute; left: 0; right: 0; bottom: 12px; height: 15px; border-bottom: 1px solid #6e8a4d; border-radius: 50%; }
#app .gm-trip-ticket { position: relative; padding: 22px 20px 20px; border: 1px solid #c0c9a7; background: #fff9e9; box-shadow: 5px 6px 0 #dce2c9; }
#app .gm-ticket-envelope { position: absolute; right: 17px; top: 21px; width: 35px; aspect-ratio: 1.55; transform: rotate(-9deg); }
#app .gm-ticket-heading { margin: 0 0 19px; padding-bottom: 15px; border-bottom: 1px dashed #a8b694; font-size: 17px; font-weight: 700; }
#app .gm-ticket-summary dl { margin: 0; }
#app .gm-ticket-summary dl > div { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
#app .gm-ticket-summary dt { flex-shrink: 0; color: #67775a; }
#app .gm-ticket-summary dd { margin: 0; color: #284c33; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
#app .gm-journey-stages { display: flex; justify-content: space-between; gap: 8px; padding: 22px 0 19px; margin: 0; list-style: none; }
#app .gm-journey-stages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; color: #8b947d; font-size: 10px; }
#app .gm-journey-stages li::before { position: absolute; top: 5px; width: calc(100% + 8px); left: 50%; height: 1px; content: ''; background: #c5cdb5; z-index: 0; }
#app .gm-journey-stages li:last-child::before { display: none; }
#app .gm-journey-stages i { position: relative; display: block; width: 11px; height: 11px; border: 1px solid #bdc7a9; border-radius: 50%; background: #fff9e9; z-index: 1; }
#app .gm-journey-stages .complete, #app .gm-journey-stages .active { color: #305237; }
#app .gm-journey-stages .complete i { background: #5e813d; border-color: #5e813d; }
#app .gm-journey-stages .active i { background: #ddf196; border: 2px solid #5e813d; }
#app .gm-success-actions { display: grid; gap: 10px; }
#app .gm-success-actions .gm-secondary { width: 100%; }
#app .receive-center { color: #24472f; background: #f3efdf; min-height: 100svh; }
#app .receive-center-intro { display: flex; align-items: center; justify-content: space-between; min-height: 190px; margin: 0; padding: 20px 25px 6px; color: #fff9e9; background: #1c472f; border-radius: 0; }
#app .receive-center-intro .gm-eyebrow { color: #d9efa9; font-size: 10px; }
#app .receive-center-intro h1 { margin: 0; color: #fff9e9; font-size: 29px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
#app .gm-center-messenger { width: 140px; flex: 0 0 140px; }
#app .gm-center-messenger > svg { display: block; width: 100%; height: auto; }
#app .receive-center-box { margin: 0; padding: 22px 22px 30px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#app .receive-center .receive-write { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 13px 18px; border: 1px solid #315936; border-radius: 2px; color: #24472f; background: #dbef9f; font-size: 15px; font-weight: 700; box-shadow: none; }
#app .receive-center .receive-write > span { font-size: 23px; font-weight: 400; }
#app .receive-center .receive-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 23px 0 19px; padding: 0; border-bottom: 1px solid #b9c2a4; border-radius: 0; background: transparent; }
#app .receive-center .receive-tabs > button { min-height: 45px; padding: 10px 3px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #758067; background: transparent; font-size: 12px; font-weight: 500; box-shadow: none; }
#app .receive-center .receive-tabs > button.active { color: #24472f; font-weight: 700; border-bottom-color: #315936; background: transparent; }
#app .receive-center .receive-list { min-height: 210px; }
#app .receive-center .receive-letter-list { display: grid; gap: 16px; }
#app .receive-center .receive-letter-card { position: relative; width: 100%; padding: 16px 14px 15px; border: 1px solid #bfc8aa; border-radius: 0; color: #24472f; background: #fff9e9; box-shadow: 3px 4px 0 #dde2cc; text-align: left; }
#app .receive-center .receive-card-top, #app .receive-center .receive-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7b876d; font-size: 10px; }
#app .receive-center .receive-state { padding: 0; color: #6e824f; background: none; border-radius: 0; }
#app .receive-center .receive-state-arrived { color: #315936; }
#app .receive-center .receive-card-main { display: flex; align-items: center; gap: 13px; margin: 17px 0; }
#app .receive-center .receive-card-main b { display: block; font-size: 15px; line-height: 1.6; }
#app .receive-center .receive-card-icon { width: 38px; height: 32px; padding: 0; color: #6c8253; background: transparent; border-radius: 0; }
#app .receive-center .receive-card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
#app .receive-center .receive-card-route { display: block; margin-top: 3px; color: #849073; font-size: 10px; }
#app .receive-center .receive-card-arrow { margin-left: auto; color: #76905a; font-size: 24px; }
#app .receive-center .receive-progress { display: block; height: 3px; margin: 12px 0 0; overflow: hidden; border-radius: 0; background: #dce3cb; }
#app .receive-center .receive-progress > span { display: block; height: 100%; background: #7b9852; }
#app .receive-center .receive-unread { border-left: 4px solid #779842; }
#app .receive-center .receive-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 220px; padding: 22px 10px; color: #718261; text-align: center; border: 1px dashed #c0c9ad; border-radius: 0; background: transparent; }
#app .receive-center .receive-empty > svg { width: 62px; height: 48px; margin-bottom: 17px; fill: none; stroke: #7e9365; stroke-width: 1.3; }
#app .receive-center .receive-empty h2 { margin: 0 0 19px; font-size: 15px; font-weight: 500; }
#app .receive-center .receive-empty .secondary { padding: 11px 23px; border: 1px solid #7e9365; border-radius: 2px; background: #fff9e9; color: #3f613c; font-size: 13px; }
#app .receive-center .receive-logout { display: block; margin: 26px auto 0; padding: 10px; border: 0; color: #859175; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
#app .receive-center .receive-friend-list { display: grid; gap: 12px; }
#app .receive-center .receive-friend-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 74px; padding: 14px; border: 1px solid #c0c9ab; border-radius: 0; color: #315337; background: #fff9e9; box-shadow: 3px 4px 0 #dde2cc; }
#app .receive-center .receive-friend-avatar { display: grid; place-items: center; flex: 0 0 37px; height: 37px; color: #405f3a; background: #e7eccf; border: 1px solid #a3b38a; border-radius: 50%; font-size: 16px; }
#app .receive-center .receive-friend-card b { overflow-wrap: anywhere; font-size: 13px; }
#app .receive-center .receive-friend-write { margin-left: auto; flex-shrink: 0; color: #7c8b6b; font-size: 11px; }
@keyframes r7-paper-top { 0%,3% { transform: rotateX(0); } 12%,100% { transform: rotateX(-180deg); } }
@keyframes r7-paper-bottom { 0%,11% { transform: rotateX(0); } 20%,100% { transform: rotateX(180deg); } }
@keyframes r7-paper-body { 0%,16% { opacity: 1; transform: scale(1); } 21% { opacity: .8; transform: translateY(10%) scale(.57,.43); } 23%,100% { opacity: 0; transform: translateY(10%) scale(.57,.43); } }
@keyframes r7-carrier-route {
  0%, 39% { transform: translateX(171%); }
  50%, 81% { transform: translateX(0); }
  100% { transform: translate(-167%, 6%); }
}
@keyframes r7-rocket-route {
  0%, 39% { transform: translateX(171%); }
  50%, 81% { transform: translateX(0); }
  86% { transform: translate(0, 2%); }
  100% { transform: translate(-40%, -153%); }
}

/* Departure screens use the campaign inks and paper against a procedural outdoor setting. */
#game-stage #app :is(.gm-transport,.gm-sending,.gm-success) .gm-content {
  top: 105px;
  font-family: var(--kv-label, 'PingFang SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif);
}
#game-stage #app :is(.gm-transport,.gm-sending,.gm-success) .gm-cloud-title {
  color: var(--kv-forest, #214216);
  font-family: var(--kv-writing, 'Kaiti SC', 'STKaiti', KaiTi, serif);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: .05em;
  box-shadow: none;
}
#game-stage #app :is(.gm-transport,.gm-sending,.gm-success) .gm-cloud-title::after { display: none; }
#game-stage #app :is(.gm-transport,.gm-sending,.gm-success) .r9-station-backdrop {
  background: linear-gradient(180deg, #d7e9ee4a 0%, #edf1dba6 56%, #a3b57b69 100%);
}
#game-stage #app :is(.gm-transport,.gm-sending,.gm-success) :is(.r9-station-window,.r9-station-beam,.r9-station-floor) { display: none; }

#game-stage #app .gm-platform-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 65px;
  align-items: center;
  gap: 13px;
  min-height: 65px;
  padding: 0 4px 1px 8px;
  border-bottom: 1px solid #55723c44;
}
#game-stage #app .gm-platform-route .gm-route {
  margin: 0;
  color: var(--kv-ink, #245234);
  font-weight: 600;
}
#game-stage #app .gm-platform-route .r9-wardrobe-object { width: 65px; min-height: 62px; }
#game-stage #app .gm-platform-route .r9-wardrobe-object > img { width: 57px; height: 47px; }
#game-stage #app .gm-transport .gm-vehicle-stage { position: relative; height: 248px; }
#game-stage #app .gm-transport .gm-vehicle-rig {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2px;
  width: min(100%, 240px);
  height: 242px;
  margin: 0;
  transform: translateX(-50%);
  filter: none;
}
#game-stage #app .gm-vehicle-rig > .turtle,
#game-stage #app .gm-receiving-turtle > .turtle,
#game-stage #app .gm-success-turtle > .turtle {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#game-stage #app .gm-platform-deck {
  position: absolute;
  inset: auto 0 2px;
  height: 18px;
  border: 1px solid #81915c;
  border-radius: 48% 46% 11px 12px / 20% 20% 22% 18%;
  background: #bfd295;
  box-shadow: 0 3px 0 #85925d;
}
#game-stage #app .gm-platform-deck::after {
  content: '';
  position: absolute;
  inset: 1px 17% 3px;
  border-radius: 50%;
  background: #49603437;
  filter: blur(5px);
}

#game-stage #app .gm-transport .gm-mode-switcher {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
}
#game-stage #app .gm-transport .gm-mode-switcher .gm-mode {
  min-height: 125px;
  padding: 5px 2px 7px;
  border: 1px solid #97a476;
  border-radius: 10px 8px 9px 9px;
  background: var(--kv-paper, #fff8e9);
  box-shadow: 0 2px 0 #64774a31;
  overflow: visible;
}
#game-stage #app .gm-transport .gm-mode-switcher .gm-mode::before { display: none; }
#game-stage #app .gm-transport .gm-mode-switcher .gm-mode.selected {
  border-color: var(--kv-cypress, #345c20);
  background: #f3f4d5;
  box-shadow: inset 0 0 0 1px var(--kv-cypress, #345c20), 0 2px 0 #64774a31;
}
#game-stage #app .gm-mode-switcher .gm-mode-mini {
  display: block;
  width: 100%;
  height: 68px;
  margin-bottom: 2px;
  pointer-events: none;
}
#game-stage #app .gm-mode-switcher .gm-mode-mini > .turtle {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#game-stage #app .gm-mode-switcher .gm-mode-check { z-index: 2; top: 5px; right: 5px; width: 12px; height: 12px; }
#game-stage #app .gm-mode-switcher .gm-mode:not(.selected) .gm-mode-check { display: none; }
#game-stage #app .gm-mode-switcher .gm-mode-check::after { top: 2px; left: 2px; width: 5px; height: 3px; }
#game-stage #app .gm-transport .gm-mode-switcher h2 { margin: 0 0 3px; font-size: 13px; line-height: 1.3; }
#game-stage #app .gm-transport .gm-mode-switcher .mode-time {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 2px 4px;
  border-radius: 5px 4px 4px 5px;
  background: #f7ebbb;
  color: #504a2c;
  font-size: 11px;
  line-height: 1.25;
}
#game-stage #app .gm-transport .gm-mode-switcher [data-mode="broom"] {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 58px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 49px;
  padding: 4px 18px 4px 7px;
  text-align: left;
}
#game-stage #app .gm-mode-switcher [data-mode="broom"] .gm-mode-mini { height: 40px; margin: 0; }
#game-stage #app .gm-mode-switcher [data-mode="broom"] h2 { margin: 0; }
#game-stage #app .gm-mode-switcher [data-mode="broom"] .gm-mode-check { top: 4px; right: 4px; }
#game-stage #app .gm-transport .gm-content .gm-eta {
  margin: 13px 0 10px;
  padding: 8px 2px;
  border-color: #879060;
  color: var(--kv-ink, #245234);
}
#game-stage #app .gm-transport .gm-content .gm-send-button,
#game-stage #app .gm-success .gm-success-actions .gm-primary {
  min-height: 47px;
  border-color: var(--kv-forest, #214216);
  border-radius: 7px 8px 7px 6px;
  background: var(--kv-cypress, #345c20);
  box-shadow: 0 3px 0 var(--kv-forest, #214216);
  color: var(--kv-paper, #fff8e9);
}

#game-stage #app .gm-sending .gm-send-scene {
  height: 420px;
  margin-top: 42px;
}
#game-stage #app .gm-sending .gm-send-mailbox { top: auto; bottom: 80px; width: 109px; }
#game-stage #app .gm-sending .gm-receiving-turtle { top: auto; bottom: 54px; width: 66%; }
#game-stage #app .gm-sending .gm-send-ground {
  bottom: 49px;
  height: 21px;
  transform: none;
  border: 1px solid #81915c;
  border-radius: 12px 11px 7px 8px;
  background: #bfd295;
  box-shadow: 0 4px 0 #85925d;
}

#game-stage #app .gm-sending .gm-send-scene:is([data-mode="rocket"], [data-mode="broom"]) .gm-receiving-turtle .d-ground {
  display: none;
}

#game-stage #app .gm-sending .gm-send-scene:is([data-mode="rocket"], [data-mode="broom"]) .gm-send-ground::after {
  content: "";
  position: absolute;
  left: 65%;
  top: 2px;
  width: 57px;
  height: 9px;
  border-radius: 50%;
  background: #40573455;
  transition: opacity .48s ease-out, transform .48s ease-out;
}

#game-stage #app .gm-sending .gm-send-scene[data-phase="depart"]:is([data-mode="rocket"], [data-mode="broom"]) .gm-send-ground::after {
  opacity: 0;
  transform: scale(.64);
}

@media (prefers-reduced-motion: reduce) {
  #game-stage #app .gm-sending .gm-send-scene .gm-send-ground::after { transition: none; }
}
#game-stage #app .gm-sending .gm-send-stages { color: #544e34; }
#game-stage #app .gm-sending .gm-send-stages li[data-phase] { border-color: #ab9e7b; }
#game-stage #app .gm-sending .gm-send-scene[data-phase='fold'] li[data-phase='fold'],
#game-stage #app .gm-sending .gm-send-scene[data-phase='envelope'] li[data-phase='fold'],
#game-stage #app .gm-sending .gm-send-scene[data-phase='deposit'] li[data-phase='deposit'],
#game-stage #app .gm-sending .gm-send-scene[data-phase='pickup'] li[data-phase='pickup'],
#game-stage #app .gm-sending .gm-send-scene[data-phase='bag'] li[data-phase='pickup'],
#game-stage #app .gm-sending .gm-send-scene[data-phase='depart'] li[data-phase='depart'] { color: #30462f; border-color: #526845; font-weight: 700; }

#game-stage #app .gm-success .gm-success-route {
  height: 214px;
  margin-top: 10px;
  background: radial-gradient(ellipse at 50% 108%, #b9d295 0 58%, transparent 59%);
}
#game-stage #app .gm-city-silhouette {
  position: absolute;
  inset: auto 3px 30px;
  height: 65px;
  pointer-events: none;
}
#game-stage #app .gm-city-silhouette::before,
#game-stage #app .gm-city-silhouette::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 31%;
  background: repeating-linear-gradient(0deg, transparent 0 7px, #eff4de72 7px 8px), #89a5a374;
  clip-path: polygon(0 48%, 15% 48%, 15% 19%, 30% 19%, 30% 36%, 46% 36%, 46% 4%, 62% 4%, 62% 48%, 78% 48%, 78% 28%, 92% 28%, 92% 61%, 100% 61%, 100% 100%, 0 100%);
}
#game-stage #app .gm-city-silhouette::after {
  inset: 0 0 0 auto;
  clip-path: polygon(0 65%, 12% 65%, 12% 43%, 30% 43%, 30% 33%, 47% 33%, 47% 13%, 57% 13%, 57% 36%, 69% 36%, 69% 19%, 81% 19%, 81% 49%, 100% 49%, 100% 100%, 0 100%);
}
#game-stage #app .gm-success .gm-success-route > span {
  padding: 5px 9px;
  margin-bottom: 3px;
  border: 1px solid #86915f;
  border-radius: 8px;
  background: var(--kv-paper, #fff8e9);
  color: var(--kv-ink, #245234);
}
#game-stage #app .gm-success .gm-success-route > i { border-bottom: 1px dashed #6c8a52; }
#game-stage #app .gm-success .gm-success-turtle {
  z-index: 2;
  width: min(64%, 211px);
  height: 222px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}
#game-stage #app .gm-success .gm-content .gm-trip-ticket {
  margin-top: 8px;
  padding: 14px 16px 16px;
  border: 1px solid #a5ae83;
  border-top: 5px solid #95ab71;
  border-radius: 9px 8px 12px 9px;
  background: var(--kv-paper, #fff8e9);
  box-shadow: 3px 4px 0 #596e412c;
}
#game-stage #app .gm-success .gm-ticket-heading { margin-bottom: 10px; padding-bottom: 9px; }
#game-stage #app .gm-success .gm-ticket-summary dl > div { margin-top: 8px; }
#game-stage #app .gm-success .gm-ticket-summary [data-trip-duration] {
  padding-inline: 8px;
  border-radius: 5px;
  background: #f7ebbb;
}
#game-stage #app .gm-success .gm-journey-stages { padding-block: 15px 13px; }
#game-stage #app .gm-success .gm-success-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 9px; }
#game-stage #app .gm-success .gm-success-actions button { padding-inline: 5px; font-size: 14px; }

#app .gm-recipient-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 43px;
  margin: 0 0 8px;
  padding: 0 4px 0 9px;
  border: 1px solid #c3c9a2;
  border-radius: 7px 8px 7px 6px;
  background: #edf1d4;
  color: var(--kv-ink, #245234);
  font: 400 12px/1.25 var(--kv-label, 'PingFang SC', sans-serif);
}
#app .gm-recipient-account > div { display: grid; gap: 2px; padding-block: 4px; }
#app .gm-recipient-account b { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
#app .gm-recipient-account button,
#app .gm-recipient-account .gm-recipient-lock {
  border: 0;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--kv-forest, #214216);
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
#app .gm-recipient-account button {
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#app .gm-recipient-account .gm-recipient-lock { background: #dce6b8; }
