.bottle-review-tools {
  max-width: 520px; margin: 0 auto; padding: 0.8rem 1rem;
  background: #fff5df; border-bottom: 2px solid #a4793f; line-height: 1.4;
}
/* Keep the complete accepted illustration and its percentage hit targets aligned
   on tall phones instead of cropping the image to the viewport height. */
.bottle-preview .phone-shell, .bottle-preview .island-screen, .bottle-preview .map-art { min-height: 0; }
.bottle-preview .map-art { height: auto; }
.bottle-review-tools p { margin: .3rem 0; font-size: .85rem; }
.bottle-review-tools label { display: block; margin: .6rem 0; }
.bottle-review-tools button, .bottle-review-tools select { min-height: 44px; max-width: 100%; font: inherit; }
.bottle-review-tools summary { padding: .4rem 0; cursor: pointer; }
.bottle-dock-panel { display: none; }
.bottle-preview .location-mode[data-scene="message-dock"] .bottle-dock-panel {
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  position: absolute; z-index: 12; left: 57%; top: 38%; width: 40%; min-height: 33%;
  padding: .7rem; border: 3px solid #ad7b35; border-radius: 15px;
  background: linear-gradient(#fff2ca, #e8c487); box-shadow: 0 4px 12px #3c2a1855;
  text-align: center;
}
.bottle-dock-panel h2 { font-size: clamp(.9rem, 3.5vw, 1.2rem); margin: 0; }
.bottle-dock-panel p { font-size: clamp(.8rem, 3vw, .95rem); line-height: 1.4; margin: 0; }
.bottle-dock-panel button { padding: .65rem .3rem; min-height: 44px; font-size: .85rem; }
.bottle-preview .location-mode[data-scene="message-dock"] #sceneActionPrimaryButton { display: none; }
.bottle-preview #messagesModal { max-height: 90svh; overflow-y: auto; }
.bottle-preview #messagesModal [hidden] { display: none; }
.bottle-preview #messagesModal .button-row { flex-wrap: wrap; }
.bottle-preview #messagePreview { white-space: pre-wrap; overflow-wrap: anywhere; }
.bottle-preview .bottle-letter {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 10px;
  align-items: start; margin: 12px 0; padding: 12px; border: 1px solid #a78655;
  border-radius: 12px; background: #f8ecd1; box-shadow: 0 3px 9px #5942262b, inset 0 0 0 3px #fff7e5;
}
.bottle-preview .bottle-letter-art {
  position: relative; width: 54px; height: 68px;
  border: 1px solid #bba277; border-radius: 9px; overflow: hidden;
  background: url('../assets/images/polish/scenes/message-dock-delivery-v1-480.webp') -32px -121px / 192px auto no-repeat;
}
.bottle-preview .bottle-letter-slip {
  position: absolute; width: 20px; height: 24px; left: 19px; top: 7px;
  border: 1px solid #c3a471; border-radius: 2px; background: repeating-linear-gradient(#fff4d7 0 6px,#d6c19c 7px,#fff4d7 8px);
  box-shadow: 0 2px 3px #4b392b55; transform: rotate(-5deg); opacity: 0;
}
.bottle-preview .bottle-letter:not(.has-note) .bottle-letter-slip { display: none; }
.bottle-preview .bottle-letter-heading { align-self: center; margin: 0; color: #75502c; font: bold .9rem Georgia, serif; }
.bottle-preview #messagesModal .bottle-letter #messagePreview {
  grid-column: 1 / -1; margin: 8px 0 0; padding: 10px 12px; border: 1px solid #dec9a0; border-radius: 3px;
  background: repeating-linear-gradient(#fffaf0 0 27px,#eee2cc 28px,#fffaf0 29px);
  box-shadow: 1px 3px 5px #5542282b; color: #392c20; font: 1rem/1.55 Georgia, serif;
}
.bottle-preview .bottle-letter.opening .bottle-letter-slip { animation: bottle-slip-rise .8s ease-out both; }
.bottle-preview .bottle-letter.opening #messagePreview { animation: bottle-paper-settle .4s ease-out .55s both; }
.bottle-preview .bottle-dock-panel .bottle-unread { color: #fff; background: #27695e; border-color: #f2d184; box-shadow: 0 0 0 3px #f3d782aa, 0 3px 8px #183a3477; }
@keyframes bottle-slip-rise { 0% { transform: translateY(55px) rotate(8deg) scale(.65); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-12px) rotate(-5deg) scale(1); opacity: 0; } }
@keyframes bottle-paper-settle { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.bottle-preview.island-still .bottle-letter.opening :is(.bottle-letter-slip, #messagePreview) { animation: none; }
@media (prefers-reduced-motion: reduce) { .bottle-preview:not(.island-motion-enabled) .bottle-letter.opening :is(.bottle-letter-slip, #messagePreview) { animation: none; } }
.bottle-counter { font-size: .8rem; text-align: right; margin: .3rem 0; }
.bottle-status { padding: .6rem; background: #fff8e7; border-left: 3px solid #22617b; }
.bottle-preview button:disabled { opacity: .55; cursor: default; }
.bottle-preview :focus-visible { outline: 3px solid #22617b; outline-offset: 3px; }
.multiplayer-panel [hidden] { display: none; }
.multiplayer-panel input[type="email"] { width: 100%; padding: .7rem; border: 1px solid #987640; border-radius: .5rem; font: inherit; }
.multiplayer-panel button { margin: .25rem .2rem .25rem 0; }
.multiplayer-panel a { display: inline-block; padding: .7rem; color: #124c64; font-weight: bold; }
.island-locked #app, .island-locked dialog { display: none !important; }
#islandLoading { padding: 1rem; text-align: center; }
