/* Shoreline design: ink blue, warm paper, and a quiet sea-glass accent. */
:root { --cyan-glow: #a4d9ce; --seafoam: #7ebcaf; --sand-gold: #e7cc97; }
body { min-height: 100svh; height: auto; overflow-x: hidden; overflow-y: auto; background: radial-gradient(ellipse at 77% 38%, #153d47 0, #0b2532 29%, #081a27 58%, #07141e 100%); user-select: auto; }
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid #dfb771; outline-offset: 5px; }
.viewport { min-height: 100svh; height: auto; max-width: 1600px; margin: auto; }
.navbar { padding: 28px 5%; background: none; border-bottom: 1px solid #ffffff12; gap: 24px; }
.brand-title { font-size: 17px; letter-spacing: 4px; text-shadow: none; color: #f4e9d6; }
.brand-sub { font-size: 9px; letter-spacing: 4.5px; margin-top: 5px; color: #a9bdbd; }
.nav-controls { gap: 10px; }
.nav-btn { min-height: 42px; border-radius: 9px; background: #ffffff04; border-color: #ffffff18; }
.nav-btn:hover { background: #ffffff0c; box-shadow: none; }
.profile-btn { max-width: 210px; }
#userPseudonym { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quota-pill { background: none; border: none; font-size: 11px; color: #acbebf; margin-right: 12px; }
.quota-icon { filter: grayscale(1); }
.sound-toggle { top: auto; left: auto; right: 5%; bottom: 20px; border-radius: 6px; background: #0b202b; border-color: #ffffff22; z-index: 12; min-height: 36px; color: #b3cac7; }
.moon { width: 44px; height: 44px; top: 19%; right: 19%; opacity: .7; box-shadow: 0 0 65px #e8ddbf30; }
#starsCanvas { height: 75%; opacity: .45; }
.ocean-scene { min-height: 610px; height: calc(100svh - 232px); max-height: 850px; flex: auto; justify-content: flex-start; isolation: isolate; overflow: hidden; }
.shore-intro { position: relative; width: 55%; padding: 52px 0 66px 9%; z-index: 6; animation: shoreReveal .9s ease both; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 600; letter-spacing: 2.3px; color: #b8c9c4; margin-bottom: 30px; }
.eyebrow span { width: 20px; height: 1px; background: #d5bd8a; }
.shore-intro h2 { font-family: 'Spectral', Georgia, serif; font-size: clamp(46px, 5.3vw, 80px); font-weight: 400; line-height: 1.05; letter-spacing: -3px; color: #f1eadb; }
.shore-intro h2 em { color: #a7cdbf; font-weight: 400; }
.shore-description { color: #b1c0c4; line-height: 1.9; font-size: 13px; margin-top: 26px; }
.action-dock { justify-content: flex-start; background: none; padding: 0; margin-top: 32px; gap: 12px; }
.action-btn { padding: 16px 21px; font-size: 12px; border-radius: 7px; box-shadow: none; font-weight: 600; gap: 16px; }
.cast-btn { background: #e6d2aa; color: #162c33; border: 1px solid #e6d2aa; }
.cast-btn:hover { background: #f5e2be; transform: translateY(-3px); box-shadow: 0 8px 28px #e6d2aa15; }
.fish-btn { background: #ffffff04; color: #d1e1dc; border: 1px solid #9cbeb448; }
.fish-btn:hover { background: #ffffff0d; transform: translateY(-3px); box-shadow: none; }
.shore-note { margin-top: 19px; color: #8ba3a9; font-size: 10px; line-height: 1.8; }
.floating-bottle-container { left: 61%; bottom: 24%; width: 29%; z-index: 5; border-radius: 50%; }
.bottle-bobber { width: 220px; height: 300px; animation: slowDrift 7s ease-in-out infinite; }
.bottle-svg { filter: drop-shadow(10px 24px 22px #0008) drop-shadow(0 0 28px #8ad8c820); }
.bottle-glow { width: 300px; height: 300px; background: radial-gradient(circle, #88d1c018, transparent 68%); }
.bottle-hint { font-size: 12px; margin-top: 26px; color: #9fbebd; text-align: center; }
.water-rings { position: absolute; width: 220px; height: 42px; bottom: 44px; border: 1px solid #a5d2c42a; border-radius: 50%; animation: ringDrift 5s ease-out infinite; }
.water-rings::after { content: ''; position: absolute; inset: -14px -36px; border: 1px solid #a5d2c414; border-radius: 50%; }
.scene-orbit { position: absolute; width: 430px; height: 430px; right: 8%; top: 12%; border: 1px solid #a5d2c416; border-radius: 50%; color: #a5c3bb65; font: 10px 'Spectral', serif; }
.scene-orbit::before { content: ''; position: absolute; inset: 24px; border: 1px dashed #a5d2c414; border-radius: 50%; }
.scene-orbit::after { content: ''; position: absolute; inset: -16px; border: 1px solid #a5d2c408; border-radius: 50%; }
.scene-orbit span { position: absolute; padding: 7px; }
.orbit-north { top: -15px; left: calc(50% - 10px); }.orbit-south { bottom: -15px; left: calc(50% - 10px); }.orbit-east { right: -12px; top: calc(50% - 10px); }.orbit-west { left: -12px; top: calc(50% - 10px); }
.scene-caption { position: absolute; right: 17%; bottom: 12%; color: #8ba8ac; font-size: 8px; letter-spacing: 3px; z-index: 5; }
.horizon-glow { position: absolute; right: 0; bottom: 16%; width: 63%; height: 150px; background: radial-gradient(ellipse, #55a69615, transparent 65%); }
#wavesCanvas { height: 45%; opacity: .35; z-index: 2; }
.shore-footer { display: flex; align-items: center; gap: 5%; margin: 0 5%; padding: 29px 0 65px; border-top: 1px solid #ffffff15; }
.journey-step { display: flex; align-items: flex-start; gap: 13px; }
.journey-step > span { color: #bfa77c; font: italic 17px 'Spectral', serif; padding-top: 2px; }
.journey-step strong { display: block; font-size: 11px; font-weight: 500; color: #d8dfd9; }
.journey-step small { display: block; font-size: 10px; color: #87a0a5; margin-top: 7px; }
.connection-status { margin-left: auto; border: 0; background: transparent; display: flex; gap: 8px; align-items: center; color: #a7bbb8; font-size: 10px; white-space: nowrap; cursor: pointer; min-height: 36px; }
.connection-status i { width: 5px; height: 5px; border-radius: 50%; background: #cfad71; }
.connection-status[data-state="online"] i { background: #9ed4b5; box-shadow: 0 0 10px #9ed4b555; }
.modal-overlay, .drawer-overlay { backdrop-filter: blur(12px); background: #020c17b8; }
.parchment-sheet { background: #f4ecdc; border: 1px solid #d5bf96; border-radius: 12px; box-shadow: 0 30px 100px #0009; max-height: 88svh; overflow-y: auto; }
.parchment-header h2 { text-transform: none; font-family: 'Spectral', serif; font-size: 30px; }
.parchment-sheet textarea { background: #ffffff35; border-radius: 6px; padding: 14px; font-size: 17px; }
.modal-close { min-width: 40px; min-height: 40px; }
.drawer-panel { background: #0d2330; border-left: 1px solid #8baaa533; }
.conv-card, .bottle-card { display: block; width: 100%; text-align: left; color: inherit; font: inherit; border-radius: 10px; }
.card-title, .card-preview, .card-subtext, .msg-bubble { overflow-wrap: anywhere; }
.chat-container { border-radius: 14px; border-color: #769e9344; max-height: 88svh; }
.chat-messages { background: #0a1c28; }
.msg-bubble { animation: shoreReveal .25s ease both; }
.notif-item { width: 100%; color: inherit; text-align: left; font: inherit; }
.avatar-choice { background: transparent; }
.toast { max-width: min(90vw, 520px); white-space: normal; text-align: center; }
@keyframes shoreReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slowDrift { 0%,100% { transform: translateY(-8px) rotate(12deg); } 50% { transform: translateY(8px) rotate(17deg); } }
@keyframes ringDrift { 0% { transform: scale(.8); opacity: 0; } 30% { opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (min-width: 1500px) { .scene-orbit { right: 11%; } }
@media (max-width: 1000px) {
  .shore-intro { padding-left: 6%; }.scene-orbit { width: 340px; height: 340px; right: 5%; top: 18%; }
  .shore-footer { gap: 24px; flex-wrap: wrap; }.connection-status { margin-left: 0; }.quota-pill { display: none; }
}
@media (max-width: 680px) {
  .navbar { padding: 19px 6%; gap: 10px; }.brand-title { font-size: 13px; }.brand-sub { font-size: 8px; letter-spacing: 3px; }
  .nav-controls { gap: 7px; }.nav-btn { padding: 8px; min-width: 38px; justify-content: center; }.profile-btn #userPseudonym { display: none; }
  .ocean-scene { min-height: 800px; height: auto; display: block; }.shore-intro { width: 100%; padding: 45px 7% 0; }
  .eyebrow { font-size: 8px; letter-spacing: 1.7px; margin-bottom: 22px; }.shore-intro h2 { font-size: 55px; letter-spacing: -2px; }
  .shore-description { font-size: 12px; margin-top: 22px; }.action-dock { margin-top: 25px; }.action-btn { font-size: 11px; padding: 15px 19px; }
  .shore-note { font-size: 9px; }.floating-bottle-container { left: 38%; width: 58%; bottom: 6%; }.bottle-bobber { width: 145px; height: 198px; }
  .bottle-hint { font-size: 11px; margin-top: 10px; }.scene-orbit { width: 250px; height: 250px; right: 6%; top: auto; bottom: 5%; }
  .scene-caption { right: auto; left: 7%; bottom: 16%; writing-mode: vertical-rl; font-size: 7px; letter-spacing: 2px; }
  .moon { top: 550px; left: 14%; right: auto; width: 27px; height: 27px; }.water-rings { width: 145px; bottom: 30px; }
  #wavesCanvas { height: 32%; }.shore-footer { margin: 0 7%; display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 75px; }
  .journey-step strong { font-size: 12px; }.journey-step small { font-size: 11px; }.connection-status { position: absolute; bottom: 23px; left: 7%; }
  .sound-toggle { right: 7%; bottom: 18px; position: absolute; }.notif-dropdown { position: fixed; top: 78px; left: 5vw; right: auto; width: 90vw; }
  .parchment-sheet { padding: 24px 20px; }.parchment-actions { flex-wrap: wrap; gap: 10px; }.parchment-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
