:root {
  color-scheme: light;
  --ink: #26445c;
  --ink-soft: #5d7180;
  --paper: #fffaf5;
  --paper-strong: #fffdf9;
  --coral: #ed7b79;
  --coral-dark: #c95360;
  --mint: #4da9a5;
  --mint-dark: #287a7b;
  --butter: #f7d57b;
  --lavender: #9c8cc7;
  --line: rgba(46, 87, 106, 0.16);
  --shadow: 0 20px 54px rgba(41, 72, 92, 0.2);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

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

body {
  display: grid;
  place-items: start center;
  color: var(--ink);
  background: #d9eaf0;
  font-family: ui-rounded, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

[hidden] {
  display: none !important;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

p,
h1,
h2 {
  margin: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bottle-widget {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 600px;
  min-height: 900px;
  overflow: hidden;
  border-radius: 0;
  background: #bde9ef;
  box-shadow: 0 24px 70px rgba(47, 79, 98, 0.22);
}

.storybook-scene,
.storybook-background {
  position: absolute;
  inset: 0;
}

.storybook-scene {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.storybook-background {
  background: url("./assets/storybook-sea.webp") center / cover no-repeat;
  transition: filter 900ms ease;
}

.storybook-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 900ms ease;
}

.bottle-widget[data-sea-mode="morning"] .storybook-background {
  filter: brightness(1.04) saturate(0.9) sepia(0.04);
}

.bottle-widget[data-sea-mode="day"] .storybook-background {
  filter: brightness(1.01) saturate(1.02);
}

.bottle-widget[data-sea-mode="evening"] .storybook-background {
  filter: brightness(0.82) saturate(1.08) sepia(0.12) hue-rotate(338deg);
}

.bottle-widget[data-sea-mode="evening"] .storybook-scene::after {
  background: linear-gradient(180deg, rgba(120, 78, 131, 0.12), rgba(241, 125, 110, 0.14) 48%, rgba(48, 76, 110, 0.2));
}

.bottle-widget[data-sea-mode="night"] .storybook-background {
  filter: brightness(0.45) saturate(0.82) contrast(1.08) hue-rotate(17deg);
}

.bottle-widget[data-sea-mode="night"] .storybook-scene::after {
  background:
    radial-gradient(circle at 82% 15%, rgba(237, 241, 255, 0.3) 0 18px, transparent 19px),
    linear-gradient(180deg, rgba(22, 29, 72, 0.38), rgba(20, 55, 88, 0.28) 52%, rgba(8, 36, 63, 0.42));
}

.cloud-wisp {
  position: absolute;
  height: 8px;
  border-top: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(0.4px);
  opacity: 0.56;
}

.cloud-wisp-a {
  top: 27%;
  left: 7%;
  width: 118px;
  animation: cloud-drift 18s ease-in-out infinite alternate;
}

.cloud-wisp-b {
  top: 32%;
  right: 7%;
  width: 82px;
  animation: cloud-drift 14s ease-in-out -6s infinite alternate-reverse;
}

.wave-ribbon {
  position: absolute;
  left: -15%;
  width: 130%;
  height: 30px;
  opacity: 0.36;
  background: radial-gradient(30px 9px at 30px 0, transparent 88%, rgba(255, 255, 255, 0.92) 91% 96%, transparent 100%) 0 0 / 60px 20px repeat-x;
  will-change: transform;
}

.wave-ribbon-back {
  top: 54%;
  opacity: 0.26;
  animation: wave-sway 7s linear infinite;
}

.wave-ribbon-middle {
  top: 62%;
  background-size: 76px 23px;
  animation: wave-sway-reverse 5.5s linear infinite;
}

.wave-ribbon-front {
  top: 72%;
  height: 42px;
  opacity: 0.43;
  background-size: 94px 28px;
  animation: wave-sway 4.4s linear -1.2s infinite;
}

.sea-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  opacity: 0.72;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(255, 246, 194, 0.95);
  animation: sparkle 3.2s ease-in-out infinite;
}

.sea-spark-a {
  top: 57%;
  left: 23%;
}

.sea-spark-b {
  top: 65%;
  right: 25%;
  animation-delay: -1.1s;
}

.sea-spark-c {
  top: 75%;
  left: 43%;
  animation-delay: -2.2s;
}

.widget-header {
  position: absolute;
  z-index: 15;
  top: 28px;
  right: 24px;
  left: 24px;
  color: #27455d;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
  transition: opacity 220ms ease, transform 220ms ease;
}

.eyebrow {
  color: var(--coral-dark);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  margin-top: 5px;
  font-family: "Iowan Old Style", AppleMyungjo, "Noto Serif KR", serif;
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.14;
}

h2 {
  margin-top: 4px;
  color: #2f4c60;
  font-family: "Iowan Old Style", AppleMyungjo, "Noto Serif KR", serif;
  font-size: 1.42rem;
  line-height: 1.2;
}

.brand-copy {
  margin-top: 8px;
  color: rgba(38, 68, 92, 0.76);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.55;
}

.mobile-break {
  display: none;
}

.bottle-widget[data-sea-mode="evening"] .widget-header,
.bottle-widget[data-sea-mode="night"] .widget-header {
  color: #fffaf2;
  text-shadow: 0 2px 14px rgba(22, 29, 62, 0.48);
}

.bottle-widget[data-sea-mode="evening"] .widget-header .eyebrow,
.bottle-widget[data-sea-mode="evening"] .brand-copy,
.bottle-widget[data-sea-mode="night"] .widget-header .eyebrow,
.bottle-widget[data-sea-mode="night"] .brand-copy {
  color: rgba(255, 247, 239, 0.82);
}

.arrival-card {
  position: absolute;
  z-index: 16;
  top: 39.5%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 48px);
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: #38586b;
  background: rgba(255, 251, 246, 0.88);
  box-shadow: 0 8px 22px rgba(50, 88, 104, 0.13);
  backdrop-filter: blur(9px) saturate(1.08);
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.arrival-card p {
  font-size: 0.76rem;
  font-weight: 850;
}

.arrival-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(237, 123, 121, 0.16);
}

.ocean {
  position: absolute;
  z-index: 14;
  inset: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.floating-bottle {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 190px;
  height: 128px;
  margin-left: -95px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  pointer-events: auto;
}

.floating-bottle::before {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 18%;
  left: 8%;
  height: 22px;
  border-radius: 50%;
  opacity: 0.46;
  background: rgba(105, 220, 218, 0.4);
  filter: blur(10px);
  animation: bottle-glow 3.8s ease-in-out infinite alternate;
}

.bottle-art {
  display: block;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.floating-bottle .bottle-art {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 13px 9px rgba(28, 84, 103, 0.28));
  transform-origin: 48% 55%;
  animation: illustrated-bottle-float 5.2s ease-in-out infinite;
}

.floating-bottle.is-empty {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.sent-bottle {
  position: absolute;
  z-index: 19;
  top: 72%;
  left: 43%;
  width: 154px;
  height: 104px;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 55%;
}

.sent-bottle::after {
  position: absolute;
  right: 8%;
  bottom: 13%;
  left: 4%;
  height: 18px;
  border-top: 3px solid rgba(229, 250, 248, 0.72);
  border-radius: 50%;
  content: "";
  filter: blur(0.4px);
}

.sent-bottle .bottle-art {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 8px rgba(32, 91, 108, 0.25));
}

.sent-bottle.is-sailing {
  animation: sent-bottle-to-horizon 5.6s cubic-bezier(0.22, 0.62, 0.24, 1) forwards;
}

.sent-bottle.is-sailing .bottle-art {
  animation: sent-bottle-bob 2.6s ease-in-out 2;
}

.bottle-widget.is-sending-bottle .arrival-card {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.floating-bottle.bottle-amber .bottle-art,
.sent-bottle.bottle-amber .bottle-art,
.bottle-option .bottle-amber {
  filter: hue-rotate(172deg) saturate(1.12) brightness(1.05) drop-shadow(0 7px 5px rgba(168, 88, 94, 0.16));
}

.floating-bottle.bottle-clear .bottle-art,
.sent-bottle.bottle-clear .bottle-art,
.bottle-option .bottle-clear {
  filter: saturate(0.28) brightness(1.18) contrast(0.9) drop-shadow(0 7px 5px rgba(98, 104, 130, 0.14));
}

.floating-bottle.bottle-blue .bottle-art,
.sent-bottle.bottle-blue .bottle-art,
.bottle-option .bottle-blue {
  filter: hue-rotate(58deg) saturate(1.08) brightness(1.04) drop-shadow(0 7px 5px rgba(98, 82, 148, 0.15));
}

.bottle-option .bottle-emerald {
  filter: saturate(0.94) brightness(1.04) drop-shadow(0 7px 5px rgba(50, 126, 133, 0.14));
}

.character-corner {
  position: absolute;
  z-index: 20;
  right: -4px;
  bottom: 58px;
  width: 205px;
  height: 430px;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.moa-character {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 205px;
  height: 308px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.moa-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(54, 72, 96, 0.2));
  transform-origin: 52% 90%;
  animation: none;
}

.moa-character:hover img {
  animation: none;
}

.character-name {
  display: none;
}

.moa-bubble {
  position: absolute;
  right: 146px;
  bottom: 194px;
  width: 205px;
  padding: 13px 15px;
  border: 2px solid rgba(222, 119, 139, 0.46);
  border-radius: 18px 18px 4px 18px;
  color: #4b6170;
  background:
    linear-gradient(145deg, rgba(255, 253, 241, 0.98), rgba(255, 234, 235, 0.98));
  box-shadow:
    0 12px 30px rgba(61, 84, 105, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 180ms ease, transform 180ms ease;
}

.moa-bubble::before,
.moa-bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.moa-bubble::before {
  right: -16px;
  bottom: 17px;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent rgba(222, 119, 139, 0.48);
}

.moa-bubble::after {
  right: -12px;
  bottom: 19px;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #ffedef;
}

.moa-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.moa-bubble.is-speaking {
  animation: bubble-pop 420ms ease-out;
}

.bottle-widget.is-panel-open .widget-header,
.bottle-widget.is-panel-open .arrival-card,
.bottle-widget.is-panel-open .ocean,
.bottle-widget.is-panel-open .character-corner {
  opacity: 0;
  pointer-events: none;
}

.bottle-widget.is-panel-open .widget-header {
  transform: translateY(-8px);
}

.bottle-widget.is-panel-open .arrival-card {
  transform: translate(-50%, 8px);
}

.bottle-widget.is-panel-open .bottom-action {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.panel {
  position: absolute;
  z-index: 30;
  top: 104px;
  right: 24px;
  left: 24px;
  max-height: calc(100% - 128px);
  overflow: auto;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(80, 119, 128, 0.025) 0 1px, transparent 1px 5px),
    rgba(255, 250, 245, 0.97);
  box-shadow: 0 24px 64px rgba(43, 66, 88, 0.28);
  backdrop-filter: blur(18px) saturate(0.9);
  scrollbar-width: thin;
}

.panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #587080;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.45rem;
  line-height: 1;
}

.icon-button:hover {
  color: var(--coral-dark);
  background: #fff;
}

.intent-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.intent-picker legend,
.bottle-picker legend,
.report-reasons legend,
.message-label,
.reply-form > label {
  margin-bottom: 8px;
  color: #496273;
  font-size: 0.78rem;
  font-weight: 900;
}

.intent-option {
  position: relative;
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #536b79;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.intent-option input,
.bottle-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.intent-option.is-selected {
  border-color: var(--coral);
  color: #fff;
  background: var(--coral);
  box-shadow: 0 7px 16px rgba(201, 83, 96, 0.19);
}

.field-help {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.message-label {
  display: block;
  margin-top: 15px;
}

textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(52, 91, 108, 0.2);
  border-radius: 8px;
  outline: none;
  color: #344f5f;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 4px rgba(52, 83, 98, 0.05);
  font-size: 0.86rem;
  line-height: 1.65;
}

textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(77, 169, 165, 0.13);
}

#messageText {
  min-height: 132px;
  padding: 12px;
}

.message-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}

.message-meta p,
.composer-footer p {
  color: var(--ink-soft);
  font-size: 0.69rem;
  line-height: 1.45;
}

output {
  flex: 0 0 auto;
  color: #6a7e89;
  font-size: 0.7rem;
  font-weight: 800;
}

.inline-alert,
.crisis-panel {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.55;
}

.inline-alert {
  border: 1px solid rgba(201, 83, 96, 0.28);
  color: #a33f4b;
  background: rgba(255, 233, 230, 0.78);
}

.crisis-panel {
  border: 1px solid rgba(184, 81, 93, 0.28);
  color: #6c3944;
  background: #fff0ef;
}

.crisis-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 0.84rem;
}

.crisis-panel > p:not(.eyebrow) {
  margin-top: 6px;
}

.crisis-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.crisis-actions a {
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: #a84d58;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.bottle-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.bottle-picker legend {
  grid-column: 1 / -1;
}

.bottle-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 88px;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 7px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #58717f;
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.bottle-option .bottle-art {
  width: 76px;
  height: 51px;
}

.bottle-option.is-selected {
  border-color: rgba(77, 169, 165, 0.58);
  background: #effcf9;
  box-shadow: 0 0 0 3px rgba(77, 169, 165, 0.1);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.composer-footer p {
  max-width: 245px;
}

.composer-footer button,
.reply-toggle,
.reply-footer button,
.report-submit {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(40, 122, 123, 0.2);
}

.intent-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(237, 123, 121, 0.28);
  border-radius: 8px;
  color: #a64d57;
  background: #fff0ed;
  font-size: 0.7rem;
  font-weight: 850;
}

.found-note {
  position: relative;
  margin-top: 12px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(151, 112, 78, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(237, 123, 121, 0.07), transparent 35px),
    repeating-linear-gradient(0deg, rgba(92, 112, 125, 0.035) 0 1px, transparent 1px 25px),
    #fffdf6;
  box-shadow: 0 10px 24px rgba(81, 71, 60, 0.08);
}

.found-note::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(237, 123, 121, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 213, 123, 0.58) 0 29%, transparent 31%);
}

.note-text {
  color: #435866;
  font-family: AppleMyungjo, "Noto Serif KR", serif;
  font-size: 0.94rem;
  line-height: 1.85;
  white-space: pre-wrap;
}

.note-meta {
  margin-top: 15px;
  color: #85939b;
  font-size: 0.69rem;
  font-weight: 750;
  text-align: right;
}

.reaction-section {
  margin-top: 16px;
}

.reaction-section > p {
  color: #566d7a;
  font-size: 0.75rem;
  font-weight: 850;
}

.reaction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.reaction-grid button {
  min-height: 44px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #58717e;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.69rem;
  font-weight: 800;
}

.reaction-grid button.is-sent {
  border-color: var(--coral);
  color: #fff;
  background: var(--coral);
}

.reaction-grid button:disabled:not(.is-sent) {
  opacity: 0.45;
}

.reaction-status {
  min-height: 20px;
  margin-top: 7px;
  color: var(--mint-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.reply-toggle {
  margin-top: 8px;
  background: var(--coral-dark);
  box-shadow: 0 8px 18px rgba(201, 83, 96, 0.18);
}

.reply-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reply-form > label {
  display: block;
}

#replyText {
  min-height: 92px;
  padding: 10px;
}

.reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.found-footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 13px;
}

.text-action {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 8px;
  color: #637885;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.text-action:hover {
  background: rgba(67, 111, 126, 0.07);
}

.text-action.danger {
  color: #b34f5a;
}

.delivery-status {
  position: absolute;
  z-index: 22;
  top: 46%;
  left: 50%;
  width: min(330px, calc(100% - 40px));
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #385969;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateX(-50%);
}

.delivery-wave {
  display: block;
  width: 72px;
  height: 8px;
  margin: 0 auto 6px;
  border-top: 3px solid var(--mint);
  border-radius: 50%;
  animation: delivery-wave 2s ease-in-out infinite;
}

.delivery-status p {
  font-size: 0.78rem;
  font-weight: 850;
}

.bottom-action {
  position: absolute;
  z-index: 25;
  right: auto;
  bottom: 22px;
  left: 24px;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.primary-action {
  display: inline-flex;
  min-width: 194px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: #fff;
  background: #365e70;
  box-shadow: 0 14px 32px rgba(39, 73, 90, 0.28);
  font-size: 0.87rem;
  font-weight: 900;
  pointer-events: auto;
}

.primary-action:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.action-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.near-shore {
  display: none;
}

.report-dialog {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 60, 78, 0.48);
  backdrop-filter: blur(7px);
}

.report-card {
  width: min(430px, 100%);
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.report-reasons {
  display: grid;
  gap: 7px;
}

.report-reasons label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.77rem;
  font-weight: 750;
}

.report-reasons input {
  width: 16px;
  height: 16px;
  accent-color: var(--coral-dark);
}

.report-submit {
  width: 100%;
  margin-top: 14px;
  background: var(--coral-dark);
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 18px;
  left: 50%;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: #fff;
  background: rgba(44, 81, 94, 0.96);
  box-shadow: 0 18px 46px rgba(37, 68, 82, 0.26);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

button:focus-visible,
textarea:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid rgba(247, 213, 123, 0.96);
  outline-offset: 3px;
}

@keyframes cloud-drift {
  from { transform: translateX(-10px); }
  to { transform: translateX(16px); }
}

@keyframes wave-sway {
  0% { transform: translate3d(-16px, 0, 0); }
  50% { transform: translate3d(10px, 3px, 0); }
  100% { transform: translate3d(44px, 0, 0); }
}

@keyframes wave-sway-reverse {
  0% { transform: translate3d(34px, 1px, 0); }
  50% { transform: translate3d(7px, -2px, 0); }
  100% { transform: translate3d(-30px, 1px, 0); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.12; transform: rotate(45deg) scale(0.55); }
  50% { opacity: 0.88; transform: rotate(45deg) scale(1); }
}

@keyframes illustrated-bottle-float {
  0%, 100% { transform: translate3d(-7px, 4px, 0) rotate(-4deg); }
  28% { transform: translate3d(3px, -6px, 0) rotate(1deg); }
  56% { transform: translate3d(9px, -11px, 0) rotate(4deg); }
  78% { transform: translate3d(2px, -2px, 0) rotate(-1deg); }
}

@keyframes sent-bottle-to-horizon {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 54px, 0) scale(1.08) rotate(-7deg);
  }
  8% {
    opacity: 1;
  }
  35% {
    opacity: 0.84;
    transform: translate3d(-28%, -28px, 0) scale(0.72) rotate(-2deg);
  }
  70% {
    opacity: 0.38;
    transform: translate3d(18%, -158px, 0) scale(0.34) rotate(2deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(72%, -278px, 0) scale(0.08) rotate(4deg);
  }
}

@keyframes sent-bottle-bob {
  0%, 100% { transform: translateY(2px) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes bottle-glow {
  from { opacity: 0.22; transform: scaleX(0.78); }
  to { opacity: 0.58; transform: scaleX(1.06); }
}

@keyframes moa-breathe {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-4px) rotate(0.5deg); }
}

@keyframes bubble-pop {
  0% { transform: translateY(8px) scale(0.94); }
  72% { transform: translateY(-2px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes delivery-wave {
  0%, 100% { transform: translateX(-3px) scaleX(0.88); }
  50% { transform: translateX(3px) scaleX(1.08); }
}

@media (max-width: 560px) {
  .bottle-widget {
    min-height: max(820px, 100svh);
  }

  .widget-header {
    top: 24px;
    right: 16px;
    left: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  .brand-copy {
    font-size: 0.78rem;
  }

  .mobile-break {
    display: block;
  }

  .arrival-card {
    top: 40.5%;
    max-width: calc(100% - 28px);
    white-space: normal;
  }

  .floating-bottle {
    top: 49%;
    width: 164px;
    height: 112px;
    margin-left: -82px;
  }

  .sent-bottle {
    top: 73%;
    left: 42%;
    width: 132px;
    height: 90px;
  }

  .character-corner {
    right: -24px;
    bottom: 54px;
    width: 166px;
    height: 364px;
  }

  .moa-character {
    right: -6px;
    width: 166px;
    height: 250px;
  }

  .moa-bubble {
    right: 106px;
    bottom: 174px;
    width: 180px;
    font-size: 0.72rem;
  }

  .panel {
    top: 92px;
    right: 14px;
    left: 14px;
    max-height: calc(100% - 108px);
    padding: 14px;
  }

  .intent-picker,
  .reaction-grid {
    grid-template-columns: 1fr;
  }

  .intent-option,
  .reaction-grid button {
    min-height: 41px;
  }

  .bottle-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottle-option {
    min-height: 78px;
  }

  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-footer p {
    max-width: none;
  }

  .composer-footer button {
    width: 100%;
  }

  .bottom-action {
    bottom: 18px;
  }
}

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

.bottle-page-body {
  display: block;
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  background: #c4e4eb;
}

.bottle-page-root {
  width: 100%;
  margin: 0;
  padding: 0;
}

.bottle-page-root .bottle-widget {
  box-shadow: none;
}

.goldsaju-corner-logo {
  position: absolute;
  z-index: 45;
  top: 12px;
  right: 12px;
  display: block;
  width: 72px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.goldsaju-corner-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.widget-header {
  top: 52px;
}

.one-time-note {
  margin-top: 12px;
  color: #71838d;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.55;
}

.close-note-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--mint-dark);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(40, 122, 123, 0.18);
}

.primary-action:disabled,
.composer-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.35);
}

@media (max-width: 560px) {
  .goldsaju-corner-logo {
    top: 9px;
    right: 9px;
    width: 64px;
    height: auto;
  }

  .widget-header {
    top: 48px;
  }

  .widget-header h1 {
    font-size: 1.7rem;
    white-space: nowrap;
  }

  .bottom-action {
    left: 18px;
  }
}

.bottle-page-body {
  padding-bottom: 60px;
}

.bottom-action {
  position: fixed;
  z-index: 60;
  right: auto;
  bottom: 0;
  left: 50%;
  display: block;
  width: min(600px, 100%);
  transform: translateX(-50%);
}

.primary-action {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-top: 0;
  border-radius: 0;
  color: #344b63;
  background: #ffe0e2;
  box-shadow: none;
  font-size: 0.9rem;
  text-shadow: 0 1px rgba(255, 255, 255, 0.7);
}

.bottom-action::before {
  position: absolute;
  z-index: 0;
  top: -8px;
  right: 0;
  left: 0;
  height: 9px;
  background:
    radial-gradient(16px 9px at 50% 100%, #ffe0e2 96%, transparent 100%) 0 0 / 32px 9px repeat-x;
  content: "";
  pointer-events: none;
}

.primary-action .action-icon {
  color: #bd5b73;
  stroke-width: 2;
}

.primary-action:hover {
  color: #40536a;
  background: #ffe0e2;
  transform: none;
}

.primary-action:active {
  background: #ffe0e2;
}

.bottle-widget.is-panel-open .bottom-action {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 100%);
}

.composer.panel {
  position: fixed;
  z-index: 70;
  top: auto;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(600px, 100%);
  max-height: min(84vh, 760px);
  padding: 22px 24px 26px;
  border-width: 1px 0 0;
  border-color: rgba(218, 142, 157, 0.38);
  border-radius: 0;
  background:
    repeating-linear-gradient(0deg, rgba(116, 98, 135, 0.025) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, rgba(255, 251, 235, 0.99), rgba(255, 237, 232, 0.99) 58%, rgba(244, 235, 249, 0.99));
  box-shadow:
    0 -24px 58px rgba(86, 83, 119, 0.2),
    inset 0 4px 0 rgba(246, 174, 183, 0.42);
  opacity: 0;
  transform: translate(-50%, 100%);
  transition: transform 320ms cubic-bezier(0.22, 0.78, 0.24, 1), opacity 180ms ease;
}

.composer.panel.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.composer.panel .eyebrow {
  color: #cf6f82;
}

.composer.panel h2 {
  color: #45566f;
}

.composer.panel #messageText {
  border-color: rgba(183, 137, 153, 0.24);
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(173, 139, 166, 0.1) 30px 31px),
    rgba(255, 255, 250, 0.7);
  box-shadow: inset 0 1px 5px rgba(95, 80, 111, 0.06);
}

.composer.panel #messageText:focus {
  border-color: rgba(209, 112, 133, 0.62);
  box-shadow: 0 0 0 3px rgba(241, 164, 178, 0.16);
}

.composer.panel .bottle-option {
  border-color: rgba(139, 118, 153, 0.16);
  background: rgba(255, 255, 250, 0.48);
}

.composer.panel .bottle-option.is-selected {
  border-color: rgba(210, 118, 138, 0.48);
  background: rgba(255, 232, 229, 0.72);
  box-shadow: 0 0 0 3px rgba(235, 151, 165, 0.1);
}

.composer.panel .composer-footer {
  min-height: 62px;
  margin: 18px -24px -26px;
  padding-left: 24px;
  border-top: 1px solid rgba(205, 133, 151, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 245, 218, 0.86), rgba(255, 220, 223, 0.82) 56%, rgba(229, 216, 241, 0.84));
}

.composer.panel .composer-footer button {
  display: inline-flex;
  align-self: stretch;
  min-width: 218px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-left: 1px solid rgba(188, 112, 137, 0.22);
  border-radius: 0;
  color: #49546a;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  font-size: 0.8rem;
  text-shadow: 0 1px rgba(255, 255, 255, 0.72);
}

.composer.panel .composer-footer button .bi {
  color: #cf7082;
  font-size: 0.94rem;
}

.composer.panel .composer-footer button:hover {
  color: #3f5067;
  background: rgba(255, 255, 255, 0.36);
}

@media (max-width: 560px) {
  .bottom-action {
    left: 50%;
  }

  .composer.panel {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-height: 88vh;
    padding: 18px 16px 22px;
  }

  .composer.panel .composer-footer {
    min-height: 0;
    margin: 16px -16px -22px;
    padding: 12px 16px 0;
  }

  .composer.panel .composer-footer button {
    min-height: 56px;
    margin: 0 -16px;
    width: calc(100% + 32px);
    border-top: 1px solid rgba(188, 112, 137, 0.2);
    border-left: 0;
  }
}

/* Keep the full-screen sea experience and the site footer separate on small screens. */
body.bottle-page-body {
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

body.bottle-page-body .goldsaju-dark-footer {
  width: min(600px, 100%);
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.bottom-action {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 560px) {
  .bottle-page-root .bottle-widget {
    min-height: max(680px, 100svh);
  }

  body.bottle-page-body .goldsaju-dark-footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  body.bottle-page-body .goldsaju-footer-inner {
    padding: 22px 14px calc(84px + env(safe-area-inset-bottom, 0px));
  }

  body.bottle-page-body .goldsaju-footer-menu {
    gap: 6px;
    margin-bottom: 18px;
  }

  body.bottle-page-body .goldsaju-footer-col a {
    font-size: 11px;
  }

  body.bottle-page-body .goldsaju-footer-col a.is-submenu {
    font-size: 10px;
  }

  body.bottle-page-body .goldsaju-footer-links,
  body.bottle-page-body .goldsaju-footer-notice,
  body.bottle-page-body .goldsaju-footer-copy {
    font-size: 11px;
  }

  body.bottle-page-body .goldsaju-footer-links {
    line-height: 1.8;
  }
}
