*{box-sizing:border-box;}
:root{--kyyeu-accent:#2E8A9E; --kyyeu-heading-font:'Cormorant Garamond',serif; --kyyeu-heading-scale:1;}
html{background:#E8F4F6;}
body{margin:0; color:#1E3A42; font-family:'Literata',serif; line-height:1.8; overflow-x:hidden;
  background:var(--kyyeu-bg, linear-gradient(180deg,#EAF6F8 0%,#D2EAF0 40%,#B8DEE8 100%));}
.wrap{max-width:720px; margin:0 auto; position:relative; z-index:4;}
@media (prefers-reduced-motion: reduce){ .wave,.bubble,.float-frame,.water-ring{animation:none !important;} }

.sea-bg{position:fixed; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse 80% 45% at 50% 100%, rgba(46,138,158,.14), transparent 62%);}

/* BỌT BIỂN NỔI LÊN */
.bubble-field{position:fixed; inset:0; z-index:1; pointer-events:none; overflow:hidden;}
.bubble{position:absolute; bottom:-24px; border-radius:50%;
  background:radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(190,228,238,.28));
  border:1px solid rgba(255,255,255,.5); animation:bubbleUp linear forwards;}
@keyframes bubbleUp{
  0%{opacity:0; transform:translateY(0) translateX(0);}
  12%{opacity:.75;}
  100%{opacity:0; transform:translateY(-108vh) translateX(var(--drift,26px));}
}

.cover{padding:56px 22px 26px; text-align:center; position:relative; z-index:4;}
.eyebrow{font-size:10.5px; letter-spacing:.32em; color:var(--kyyeu-accent); margin-bottom:24px;}
.cover-photo{position:relative; width:180px; height:180px; margin:0 auto 22px; border-radius:50%; overflow:hidden;
  border:4px solid rgba(255,255,255,.85); box-shadow:0 16px 34px rgba(30,58,66,.2);}
.cover-photo img{width:100%; height:100%; object-fit:cover;}
.water-ring{position:absolute; inset:-14px; border-radius:50%; border:2px solid rgba(46,138,158,.3);
  animation:ripple 3.6s ease-out infinite;}
@keyframes ripple{0%{transform:scale(.92); opacity:.7;} 100%{transform:scale(1.22); opacity:0;}}
.cover h1{font-family:var(--kyyeu-heading-font); font-style:italic; font-weight:600;
  font-size:calc(42px * var(--kyyeu-heading-scale)); margin:0 0 10px; color:var(--kyyeu-accent);}
.sea-line{font-family:var(--kyyeu-heading-font); font-style:italic; font-size:16px; color:#4A7E8A; margin:0 0 12px;}
.cover-meta{margin:0; font-size:13.5px; color:#5A8A94;}

/* SÓNG CUỘN NHIỀU LỚP */
.wave-stack{position:relative; height:120px; margin-top:-10px; z-index:3;}
.wave{position:absolute; left:0; bottom:0; width:200%; height:120px;}
.wave path{fill-opacity:.55;}
.wave.w1 path{fill:#7EC4D4;}
.wave.w2 path{fill:#4FA8BC;}
.wave.w3 path{fill:#2E8A9E;}
.wave.w1{animation:waveRoll 13s linear infinite;}
.wave.w2{animation:waveRoll 9s linear infinite reverse; opacity:.8;}
.wave.w3{animation:waveRoll 17s linear infinite; opacity:.9;}
@keyframes waveRoll{from{transform:translateX(0);} to{transform:translateX(-50%);}}

.section{padding:50px 24px 8px; position:relative; z-index:4;}
.section-head{text-align:center; margin-bottom:30px;}
.section h2{font-family:var(--kyyeu-heading-font); font-style:italic; font-weight:600;
  font-size:calc(28px * var(--kyyeu-heading-scale)); color:var(--kyyeu-accent); margin:0 0 6px;}
.section .sub{font-size:12.5px; color:#5A8A94;}

/* ẢNH DẬP DỀNH THEO SÓNG */
.wave-gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.float-frame{margin:0; opacity:0; transform:translateY(20px);
  transition:opacity .9s ease var(--d), transform .9s cubic-bezier(.2,.85,.3,1) var(--d);}
.float-frame.afloat{opacity:1; transform:translateY(0);}
.float-frame.afloat .ff-inner{animation:bobbing 4.6s ease-in-out infinite; animation-delay:calc(var(--i) * .55s);}
@keyframes bobbing{0%,100%{transform:translateY(0) rotate(-.5deg);} 50%{transform:translateY(-9px) rotate(.5deg);}}
.ff-inner{position:relative; border-radius:12px; overflow:hidden; box-shadow:0 14px 28px rgba(30,58,66,.2);}
.ff-inner img{width:100%; height:140px; object-fit:cover; display:block; transition:transform .7s ease;}
.float-frame:hover .ff-inner img{transform:scale(1.05);}
.ff-caustic{position:absolute; inset:0; pointer-events:none; opacity:.28;
  background:repeating-linear-gradient(112deg, rgba(255,255,255,.5) 0 2px, transparent 2px 9px);
  animation:causticShift 6s linear infinite;}
@keyframes causticShift{from{background-position:0 0;} to{background-position:60px 40px;}}
.float-frame figcaption{text-align:center; font-size:12.5px; color:#5A8A94; margin-top:10px; font-style:italic;}
@media(max-width:600px){.wave-gallery{grid-template-columns:repeat(2,1fr);}}

.see-full{text-align:center; margin:34px 0 0;}
.see-full a{font-family:var(--kyyeu-heading-font); font-style:italic; font-size:15px; color:var(--kyyeu-accent);
  text-decoration:none; border-bottom:1px solid rgba(46,138,158,.4); padding-bottom:2px;}

/* THƯ TRONG CHAI */
.bottle-row{display:flex; flex-wrap:wrap; justify-content:center; gap:26px; max-width:600px; margin:0 auto;}
.bottle{width:120px; text-align:center; cursor:pointer;}
.bottle-shape{position:relative; width:46px; height:96px; margin:0 auto 10px;
  background:linear-gradient(120deg, rgba(190,228,238,.55), rgba(126,196,212,.4));
  border:2px solid rgba(255,255,255,.75); border-radius:8px 8px 16px 16px;
  box-shadow:0 8px 18px rgba(30,58,66,.18), inset 0 0 14px rgba(255,255,255,.4);
  animation:bottleBob 4s ease-in-out infinite;}
@keyframes bottleBob{0%,100%{transform:translateY(0) rotate(-4deg);} 50%{transform:translateY(-8px) rotate(4deg);}}
.bottle-cork{position:absolute; top:-13px; left:50%; transform:translateX(-50%); width:18px; height:15px;
  background:linear-gradient(180deg,#C99A62,#A87A46); border-radius:3px 3px 2px 2px;}
.bottle-paper{position:absolute; bottom:14px; left:50%; transform:translateX(-50%) rotate(-8deg);
  width:24px; height:34px; background:#F6EFDE; border-radius:2px;
  box-shadow:0 2px 5px rgba(0,0,0,.15);}
.bottle-name{font-family:var(--kyyeu-heading-font); font-style:italic; font-size:13.5px; color:var(--kyyeu-accent);}
.bottle-letter{display:none; margin-top:12px; background:#F9F4E6; border-radius:6px; padding:14px 16px;
  box-shadow:0 8px 18px rgba(30,58,66,.18); text-align:left;}
.bottle.opened .bottle-letter{display:block; animation:letterOut .5s ease;}
@keyframes letterOut{from{opacity:0; transform:translateY(-8px) scale(.94);} to{opacity:1; transform:translateY(0) scale(1);}}
.bottle-letter p{margin:0; font-size:13px; color:#3A4A44; line-height:1.7;}
.bottle.opened .bottle-shape{animation:none; opacity:.5;}

/* ĐIỀU MUỐN THẢ TRÔI */
.drift-list{max-width:520px; margin:0 auto;}
.drift-item{display:flex; align-items:baseline; gap:12px; padding:13px 0;
  border-bottom:1px dashed rgba(46,138,158,.22); font-size:14.5px; color:#26525C;}
.drift-item:last-child{border-bottom:none;}
.drift-wave{color:var(--kyyeu-accent); font-size:17px; animation:driftFloat 3.2s ease-in-out infinite;}
@keyframes driftFloat{0%,100%{transform:translateX(0);} 50%{transform:translateX(5px);}}

/* LỜI NHẮN BÊN BỜ */
.shore-notes{max-width:520px; margin:0 auto;}
.shore-note{background:rgba(255,255,255,.72); backdrop-filter:blur(6px); border-radius:12px; padding:17px 20px;
  margin-bottom:14px; box-shadow:0 8px 20px rgba(30,58,66,.1); border-left:3px solid var(--kyyeu-accent);}
.shore-note p{margin:0 0 8px; font-size:14.5px; color:#26525C;}
.shore-note cite{font-family:var(--kyyeu-heading-font); font-style:italic; font-size:13.5px; color:var(--kyyeu-accent);}

.share{margin:56px 24px 30px; padding:42px 26px; text-align:center; border-radius:18px;
  background:linear-gradient(150deg,#2E8A9E,#1E5E70); color:#EAF6F8; position:relative; z-index:4;}
.share h2{font-family:var(--kyyeu-heading-font); font-style:italic; font-size:26px; margin:0 0 8px;}
.share p{font-size:13px; margin:0 0 20px; opacity:.86;}
#qrcode{background:#fff; display:inline-block; padding:9px; border-radius:10px; margin-bottom:16px;}
.link-row{display:flex; justify-content:center; gap:8px; flex-wrap:wrap; font-size:12.5px;}
.link-row code{background:rgba(234,246,248,.16); padding:7px 13px; border-radius:20px;}
.link-row button{background:#EAF6F8; color:#1E5E70; border:none; padding:7px 15px; border-radius:20px;
  font-size:12px; font-weight:700; cursor:pointer;}

.foot{text-align:center; font-size:11.5px; color:#5A8A94; padding:0 20px 44px; position:relative; z-index:4;}

/* ============ NÂNG CẤP PREMIUM ============ */
/* Bảng màu bổ sung: san hô ấm + ngọc lam sâu — chiều sâu đại dương */
:root{--kyyeu-coral:#E8825C; --kyyeu-deep:#0E4A58;}

/* 1. LA BÀN THỦY THỦ — KIM XOAY THEO CON TRỎ */
.compass-wrap{max-width:260px; margin:0 auto; text-align:center;}
.compass-dial{position:relative; width:190px; height:190px; margin:0 auto 14px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #FBF6E8, #E8DFC4);
  border:4px solid var(--kyyeu-deep); box-shadow:0 16px 34px rgba(14,74,88,.28), inset 0 0 20px rgba(14,74,88,.15);}
.compass-tick{position:absolute; inset:10px; border-radius:50%;
  background-image:repeating-conic-gradient(rgba(14,74,88,.5) 0 1deg, transparent 1deg 30deg);
  -webkit-mask:radial-gradient(circle, transparent 92%, #000 93%);
  mask:radial-gradient(circle, transparent 92%, #000 93%);}
.compass-letter{position:absolute; font-family:var(--kyyeu-heading-font); font-size:15px; color:var(--kyyeu-deep); font-weight:600;}
.compass-letter.n{top:10px; left:50%; transform:translateX(-50%);}
.compass-letter.s{bottom:10px; left:50%; transform:translateX(-50%);}
.compass-letter.e{right:10px; top:50%; transform:translateY(-50%);}
.compass-letter.w{left:10px; top:50%; transform:translateY(-50%);}
.compass-needle{position:absolute; top:50%; left:50%; width:5px; height:76px; margin:-76px 0 0 -2.5px;
  transform-origin:bottom center; transition:transform .35s cubic-bezier(.2,.7,.3,1);
  background:linear-gradient(180deg, var(--kyyeu-coral) 0%, var(--kyyeu-coral) 48%, var(--kyyeu-deep) 52%, var(--kyyeu-deep) 100%);
  border-radius:3px; filter:drop-shadow(0 3px 6px rgba(0,0,0,.25));}
.compass-pin{position:absolute; top:50%; left:50%; width:12px; height:12px; margin:-6px 0 0 -6px;
  border-radius:50%; background:var(--kyyeu-deep); box-shadow:0 2px 5px rgba(0,0,0,.3);}
.compass-label{font-size:12px; color:var(--kyyeu-deep); font-style:italic;}

/* 2. THỦY TRIỀU KỶ NIỆM — THANH TRƯỢT THỜI GIAN */
.tide-timeline{max-width:560px; margin:0 auto;}
.tide-track{position:relative; height:5px; background:rgba(46,138,158,.18); border-radius:3px; margin:0 30px 34px;}
.tide-fill{position:absolute; left:0; top:0; bottom:0; width:0%; background:var(--kyyeu-accent); border-radius:3px;
  transition:width .15s linear;}
.tide-marker{position:absolute; top:50%; width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%;
  background:#fff; border:3px solid var(--kyyeu-accent); cursor:pointer; transition:transform .3s ease;}
.tide-marker.active{transform:scale(1.3); background:var(--kyyeu-coral); border-color:var(--kyyeu-coral);}
.tide-marker span{position:absolute; top:22px; left:50%; transform:translateX(-50%); white-space:nowrap;
  font-size:11px; color:#4A7E8A; font-style:italic;}
.tide-content{background:#fff; border-radius:12px; padding:20px 24px; box-shadow:0 12px 26px rgba(30,58,66,.14);
  text-align:center; min-height:70px;}
.tide-content p{margin:0; font-size:14.5px; color:#26525C; transition:opacity .3s ease;}

/* 3. NÚT LƯU BÚT DƯỚI CÁT — CHẠM ĐỂ VIẾT TÊN */
.sand-board{max-width:520px; margin:0 auto; position:relative; height:120px; border-radius:14px; overflow:hidden;
  background:linear-gradient(160deg, #F0DFC0, #E0CBA0); box-shadow:inset 0 4px 14px rgba(120,90,50,.2);
  cursor:crosshair; touch-action:none;}
.sand-hint{position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:12.5px; color:rgba(120,90,50,.55); font-style:italic; pointer-events:none; transition:opacity .4s ease;}
.sand-board.written .sand-hint{opacity:0;}
