/* Кафе на пристани — свой вид поверх набора: море, дерево, крупные игровые плашки и кнопки с кромкой. */
:root {
  --bg-top: #2b9fd1;
  --bg-mid: #1f86c2;
  --bg-bottom: #135e9c;
  --sea-1: #56c5ea;
  --sea-2: #2390c9;
  --sea-3: #0f5a95;
  --wood: #9a6435;
  --wood-d: #6d4220;
  --cream: #fff6e4;
  --cream-d: #ead6b0;
  --ink-d: #3d2a17;
  --green: #48c264; --green-l: #2f8f45;
  --gold: #ffc531; --gold-l: #c98a12;
  --pearl: #8f7cf0; --pearl-l: #5d4bbd;
  --red: #ff6a5a;
  --navy: rgba(10, 42, 82, 0.62);
  --r: 18px;
  --font: 'Nunito', 'Trebuchet MS', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: #fff;
  background: linear-gradient(180deg, var(--sea-1) 0%, var(--sea-2) 46%, var(--sea-3) 100%);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
body .sky { display: none; }
button { font-family: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- значки (рисованные) */
.ico { display: inline-block; width: 22px; height: 22px; flex: none; background-size: contain; background-repeat: no-repeat; background-position: center; vertical-align: middle; }
.ico-bolt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 1 4 13.5h6.5L8.5 23 20 9.5h-6.8z' fill='%23ffd23f' stroke='%23b57a00' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M13.2 3.6 6.8 12' stroke='%23fff6b0' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ico-coin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='%23f2b01e' stroke='%23a86f00' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='7' fill='%23ffd65a'/%3E%3Cpath d='M12 7.5v9M9.5 9.5h5' stroke='%23c98a12' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M6 8.5a7 7 0 0 1 5-4' stroke='%23fff3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ico-pearl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.32' r='.75'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23e3dcff'/%3E%3Cstop offset='1' stop-color='%23a493f0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10' fill='url(%23g)' stroke='%237560d8' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ico-star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3.1 6.6 7.1.8-5.3 4.8 1.5 7-6.4-3.7-6.4 3.7 1.5-7-5.3-4.8 7.1-.8z' fill='%23ffcf3a' stroke='%23b57a00' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ico-chest { display: inline-block; width: 34px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Crect x='2' y='12' width='30' height='16' rx='3' fill='%23b0703a' stroke='%236d4220' stroke-width='1.6'/%3E%3Cpath d='M2 14c0-7 5-11 15-11s15 4 15 11z' fill='%23c98448' stroke='%236d4220' stroke-width='1.6'/%3E%3Crect x='14' y='11' width='6' height='8' rx='1.5' fill='%23ffd23f' stroke='%23a86f00' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------------------------------------------------------------- счётчики сверху */
.hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 6px;
  padding: calc(max(10px, var(--kit-safe-top)) + 2px) max(10px, var(--kit-safe-right)) 6px max(10px, var(--kit-safe-left));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.res {
  position: relative; display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 4px;
  border: 0; border-radius: 16px; background: var(--navy);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 2px 0 rgba(0, 0, 0, 0.18);
  color: #fff; font: 900 15px/1 var(--font); letter-spacing: 0.01em; text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.35);
  flex: 1 1 0; min-width: 0; justify-content: flex-start;
}
.res b { font-weight: 900; white-space: nowrap; }
.res .ico { width: 26px; height: 26px; margin-left: -2px; filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, 0.25)); }
.res small { font-size: 10.5px; font-weight: 800; opacity: 0.82; white-space: nowrap; margin-left: auto; }
.res .plus { position: absolute; right: -4px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--green); box-shadow: inset 0 -2px 0 var(--green-l), 0 0 0 2px #fff; font-size: 16px; line-height: 19px; text-align: center; text-shadow: none; }
.res-energy { padding-right: 18px; }
.res-lvl { flex: 0 0 auto; width: 74px; padding-left: 2px; }
.star { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin: -4px -2px -4px -4px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.8 3.1 6.6 7.1.8-5.3 4.8 1.5 7-6.4-3.7-6.4 3.7 1.5-7-5.3-4.8 7.1-.8z' fill='%23ffcf3a' stroke='%23b57a00' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); }
.star b { font-size: 12.5px; color: #7a4a00; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); margin-top: 3px; }
.star.big { width: 110px; height: 110px; }
.star.big b { font-size: 38px; }
.xpbar { flex: 1; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); overflow: hidden; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3); }
.xpbar em { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(#9cf07a, #45b84f); transition: width 0.5s; }

/* ---------------------------------------------------------------- пристань */
.menu.hub { padding: 0; justify-content: flex-end; }
.hub .logo { display: none; }
.harbor { position: absolute; inset: 0; }
.harbor canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.h-load { position: absolute; left: 50%; top: 52%; width: 160px; height: 10px; margin-left: -80px; border-radius: 5px; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.h-load b { display: block; width: 0; height: 100%; background: #fff; border-radius: 5px; transition: width 0.2s; }
.hub-side { position: absolute; z-index: 5; right: max(10px, var(--kit-safe-right)); top: calc(max(10px, var(--kit-safe-top)) + 46px); display: flex; flex-direction: column; gap: 8px; }
.rbtn { width: 42px; height: 42px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font: 900 12px var(--font);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), 0 3px 0 rgba(0, 0, 0, 0.2); display: grid; place-items: center; }
.rbtn svg { width: 22px; height: 22px; }
.mood-btn .i-moon, .mood-btn.eve .i-sun { display: none; }
.mood-btn.eve .i-moon { display: block; }
.mood-btn.eve { background: #2c3570; }
.hub-bottom { position: relative; z-index: 5; width: 100%; box-sizing: border-box; display: flex; gap: 10px; align-items: stretch;
  padding: 0 max(12px, var(--kit-safe-right)) max(16px, calc(var(--kit-safe-bottom) + 8px)) max(12px, var(--kit-safe-left)); }
.book-btn { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; border: 0; border-radius: 20px;
  background: linear-gradient(#fffaf0, #f3e2c1); color: var(--ink-d); text-align: left;
  box-shadow: inset 0 -4px 0 #d9bf8f, 0 4px 0 rgba(0, 0, 0, 0.2), 0 0 0 2.5px #fff; }
.book-btn:active, .go-btn:active, .gbtn:active, .o-serve:active, .ibtn:active { transform: translateY(2px); }
.book-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: linear-gradient(#3f8fd4, #2a6db0); box-shadow: inset 0 -3px 0 #1f548a;
  position: relative; }
.book-ico::before { content: ''; position: absolute; inset: 8px 9px; border-radius: 3px; background: #fff6e4; box-shadow: inset 0 0 0 1.5px #c9a46c; }
.book-ico::after { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: #c9a46c; }
.book-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.book-txt small { font-size: 11px; font-weight: 800; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-txt b { font-size: 14.5px; font-weight: 900; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cost { display: flex; align-items: center; gap: 3px; font-weight: 900; font-size: 15px; white-space: nowrap; }
.cost .ico { width: 20px; height: 20px; }
.book-btn.can .cost { color: #2f8f45; }
.dot { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); box-shadow: 0 0 0 2.5px #fff, 0 2px 0 rgba(0, 0, 0, 0.25);
  color: #fff; font: 900 12px/22px var(--font); text-align: center; font-style: normal; animation: pulse 1.2s ease-in-out infinite; }
.dot:not(.num)::after { content: '!'; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.go-btn { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 118px; padding: 6px 12px; border: 0; border-radius: 20px;
  background: linear-gradient(#5fdc7b, #36b356); color: #fff; font: 900 14.5px/1.1 var(--font); text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 -5px 0 #24863f, 0 4px 0 rgba(0, 0, 0, 0.2), 0 0 0 2.5px #fff; }
.go-ico { width: 36px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 30'%3E%3Cpath d='M4 13h28l-2 13a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3z' fill='%23fff' stroke='%23246b38' stroke-width='2'/%3E%3Cpath d='M2 13h32' stroke='%23246b38' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M11 9c0-3 3-3 3-6M18 9c0-3 3-3 3-6M25 9c0-3-3-3-3-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------------------------------------------------------------- прилавок */
.app.board-screen { padding: 0; gap: 0; justify-content: flex-start; align-items: stretch; height: var(--vh, 100vh);
  background: radial-gradient(120% 60% at 50% 45%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(180deg, #59c6e8 0%, #2b97cc 55%, #18689f 100%); }
.eve .app.board-screen { background: radial-gradient(120% 60% at 50% 45%, rgba(255, 200, 150, 0.16), transparent 70%), linear-gradient(180deg, #e39a86 0%, #6a5f9e 50%, #2b3a72 100%); }
.board-screen .hud { position: relative; }
.orders { position: relative; z-index: 3; flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px max(10px, var(--kit-safe-left)) 8px; scroll-snap-type: x proximity; }
.orders::-webkit-scrollbar { display: none; }
.order { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: 18px; scroll-snap-align: start;
  background: linear-gradient(#fffaf0, #f1e0bd); box-shadow: inset 0 -3px 0 #d9bf8f, 0 3px 0 rgba(0, 0, 0, 0.18), 0 0 0 2px #fff; color: var(--ink-d); min-height: 58px; }
.order.in { animation: orderIn 0.35s cubic-bezier(.2, 1.4, .4, 1) both; }
.order.gone { animation: orderOut 0.35s ease-in both; }
@keyframes orderIn { from { transform: translateY(-20px) scale(0.8); opacity: 0; } }
@keyframes orderOut { to { transform: translateY(-30px) scale(0.7); opacity: 0; } }
.face { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--who, #888);
  box-shadow: 0 0 0 2.5px #fff, 0 2px 0 2.5px rgba(0, 0, 0, 0.15); display: grid; place-items: center; font: 900 20px var(--font); color: #fff; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.o-items { display: flex; gap: 3px; }
.o-it { position: relative; width: 44px; height: 44px; border-radius: 12px; background: rgba(160, 120, 70, 0.14); display: grid; place-items: center; }
.o-it img { width: 46px; height: 46px; margin-top: -4px; }
.o-it.have { background: rgba(72, 194, 100, 0.22); }
.o-it.have::after { content: '✓'; position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; background: var(--green); color: #fff; font: 900 11px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; }
.o-reward { display: flex; flex-direction: column; align-items: center; font-weight: 900; font-size: 12px; gap: 0; }
.o-reward .ico { width: 18px; height: 18px; }
.o-serve { display: none; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: 14px; padding: 4px 10px; min-height: 44px;
  background: linear-gradient(#5fdc7b, #36b356); color: #fff; font: 900 13px/1.05 var(--font); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 -3px 0 #24863f, 0 2px 0 rgba(0, 0, 0, 0.2); }
.o-serve small { display: flex; align-items: center; gap: 1px; font-size: 11.5px; }
.o-serve .ico { width: 15px; height: 15px; }
.order.ready .o-serve { display: flex; animation: pulse 1.2s ease-in-out infinite; }
.order.ready .o-reward { display: none; }
.order.ready { box-shadow: inset 0 -3px 0 #a7d98f, 0 3px 0 rgba(0, 0, 0, 0.18), 0 0 0 2.5px #61d07c; background: linear-gradient(#f6fff0, #dff5cf); }

.board-host { position: relative; flex: 1 1 auto; min-height: 0; }
.b3-canvas { position: absolute; inset: 0; display: block; }
.b3-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* тень от полки заказов на настил и мягкий переход снизу к панели */
.board-host::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(12, 46, 78, 0.38), rgba(12, 46, 78, 0)); }
.board-host::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(12, 46, 78, 0), rgba(12, 46, 78, 0.28)); }
.b3-badge { position: absolute; left: 0; top: 0; margin: -12px 0 0 -26px; width: 52px; text-align: center; font: 900 11px/20px var(--font); color: #fff;
  border-radius: 10px; background: rgba(20, 40, 70, 0.78); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.b3-badge.ripe { background: #ffcf3a; color: #6b4300; text-shadow: none; width: 34px; margin-left: -17px; }
.b3-badge.bub { background: rgba(80, 160, 230, 0.9); }
.b-load { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 16px; opacity: 0.85; }

.info { flex: none; display: flex; align-items: center; gap: 8px; min-height: 64px; margin: 0 max(10px, var(--kit-safe-left)) 6px; padding: 6px 8px; border-radius: 18px;
  background: linear-gradient(#fffaf0, #f1e0bd); color: var(--ink-d); box-shadow: inset 0 -3px 0 #d9bf8f, 0 3px 0 rgba(0, 0, 0, 0.18); }
.info.empty p { margin: 0 6px; font-size: 12px; font-weight: 700; line-height: 1.3; opacity: 0.75; }
.info-ico { width: 58px; height: 58px; flex: none; margin: -6px 0; }
.info-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.info-txt b { font-size: 15px; font-weight: 900; line-height: 1.1; }
.info-txt em { font-style: normal; font-size: 11px; font-weight: 800; color: #b07a46; }
.info-txt small { font-size: 11.5px; font-weight: 700; line-height: 1.25; opacity: 0.8; }
.info-acts { display: flex; gap: 6px; flex: none; }
.ibtn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; padding: 3px 8px; border: 0; border-radius: 13px;
  color: #fff; font: 900 12.5px/1.1 var(--font); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.ibtn small { font-size: 11px; opacity: 0.95; }
.ibtn.coin { background: linear-gradient(#ffd65a, #f0a91a); box-shadow: inset 0 -3px 0 #b97b0a; }
.ibtn.bag { background: linear-gradient(#6fb6ec, #3f8fd4); box-shadow: inset 0 -3px 0 #2a6db0; }
.ibtn.pearl { background: linear-gradient(#a99af7, #7a66e0); box-shadow: inset 0 -3px 0 #5544b0; }

.dock { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 max(10px, var(--kit-safe-right)) max(12px, calc(var(--kit-safe-bottom) + 4px)) max(10px, var(--kit-safe-left)); }
.dbtn { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 58px; border: 0; border-radius: 18px;
  background: linear-gradient(#5aa9e6, #2e7cc4); color: #fff; font: 900 11px var(--font); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 -4px 0 #1f5c96, 0 3px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff; }
.dbtn.pulse { animation: pulse 0.9s ease-in-out 3; }
.ico-pier { width: 34px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M5 10 17 3l12 7v13H5z' fill='%23fff6e4' stroke='%23123d66' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M2 11 17 2l15 9' stroke='%23e85a4a' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='14' y='15' width='6' height='8' fill='%239a6435'/%3E%3C/svg%3E") center/contain no-repeat; }
.ico-gift { width: 36px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 34'%3E%3Crect x='4' y='14' width='28' height='18' rx='3' fill='%23ff6a8a' stroke='%23a3264a' stroke-width='2'/%3E%3Crect x='2' y='9' width='32' height='7' rx='2' fill='%23ff8aa5' stroke='%23a3264a' stroke-width='2'/%3E%3Cpath d='M18 9v23' stroke='%23ffd23f' stroke-width='4'/%3E%3Cpath d='M18 9c-4-7-11-5-8 0M18 9c4-7 11-5 8 0' stroke='%23ffd23f' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; }
.dbtn.gift { background: linear-gradient(#fff3d0, #ffd88a); box-shadow: inset 0 -4px 0 #d79a2a, 0 3px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff; animation: pulse 1.4s infinite; }
.inv { flex: 1; min-width: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; border-radius: 18px; }
.inv::-webkit-scrollbar { display: none; }
.slot { flex: none; width: 40px; height: 40px; border: 0; border-radius: 13px; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 -3px 0 rgba(150, 110, 60, 0.3), 0 2px 0 rgba(0, 0, 0, 0.18); display: grid; place-items: center; padding: 0; }
.slot.empty { background: rgba(10, 42, 82, 0.35); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25); }
.slot.plus { background: rgba(10, 42, 82, 0.35); color: #fff; font: 900 24px var(--font); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.slot img { width: 42px; height: 42px; margin-top: -3px; }

/* ---------------------------------------------------------------- разговор */
.talk { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; padding: 0 10px max(18px, calc(var(--kit-safe-bottom) + 10px));
  background: linear-gradient(transparent 50%, rgba(0, 20, 50, 0.45)); }
.talk[hidden] { display: none; }
.talk-card { position: relative; display: flex; align-items: flex-end; gap: 10px; width: 100%; max-width: 520px; margin: 0 auto; padding: 14px 16px 16px 120px; min-height: 92px; box-sizing: border-box;
  border-radius: 22px; background: linear-gradient(#fffaf0, #f3e2c1); color: var(--ink-d); box-shadow: inset 0 -4px 0 #d9bf8f, 0 5px 0 rgba(0, 0, 0, 0.22), 0 0 0 3px #fff; }
.talk-card.in { animation: orderIn 0.3s cubic-bezier(.2, 1.4, .4, 1) both; }
.talk-face { position: absolute; left: 6px; bottom: 6px; width: 112px; height: 132px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.15)); }
.talk-card.right { padding: 14px 120px 16px 16px; }
.talk-card.right .talk-face { left: auto; right: 6px; }
.talk-body { flex: 1; }
.talk-name { display: inline-block; margin: -30px 0 6px; padding: 4px 12px; border-radius: 12px; background: var(--who, #ff8a65); color: #fff; font: 900 14px var(--font); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 0 0 2.5px #fff; }
.talk-text { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.talk-next { position: absolute; right: 14px; bottom: 6px; font-size: 11px; opacity: 0.5; font-style: normal; animation: pulse 1s infinite; }
.talk-card.right .talk-next { right: 128px; }

/* ---------------------------------------------------------------- лист */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 25, 55, 0.55); }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: 100%; max-width: 380px; max-height: 86vh; overflow: auto; box-sizing: border-box; padding: 18px 16px 16px; border-radius: 26px;
  background: linear-gradient(#fffaf0, #f3e2c1); color: var(--ink-d); box-shadow: inset 0 -5px 0 #d9bf8f, 0 6px 0 rgba(0, 0, 0, 0.25), 0 0 0 3px #fff; animation: orderIn 0.3s cubic-bezier(.2, 1.4, .4, 1) both; }
.sheet-card h2 { margin: 0 34px 12px; text-align: center; font: 900 19px/1.2 var(--font); color: var(--ink-d); }
.sheet-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 12px; background: var(--red); color: #fff; font: 900 16px var(--font); box-shadow: inset 0 -3px 0 #c23c2e; }
.sheet-text { text-align: center; font-weight: 700; font-size: 14px; margin: 6px 0 12px; }
.sheet-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 46px; padding: 6px 16px; border: 0; border-radius: 16px; color: #fff;
  font: 900 15.5px var(--font); text-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.25); }
.gbtn .ico { width: 20px; height: 20px; }
.btn-green { background: linear-gradient(#5fdc7b, #36b356); box-shadow: inset 0 -4px 0 #24863f, 0 3px 0 rgba(0, 0, 0, 0.18); }
.btn-gold { background: linear-gradient(#ffd65a, #f0a91a); box-shadow: inset 0 -4px 0 #b97b0a, 0 3px 0 rgba(0, 0, 0, 0.18); }
.btn-pearl { background: linear-gradient(#a99af7, #7a66e0); box-shadow: inset 0 -4px 0 #5544b0, 0 3px 0 rgba(0, 0, 0, 0.18); }
.btn-off { background: linear-gradient(#c9c2b6, #a69d8f); box-shadow: inset 0 -4px 0 #857c6e; }
.energy-big { display: flex; align-items: center; justify-content: center; gap: 8px; font: 900 30px var(--font); }
.energy-big .ico { width: 46px; height: 46px; }

.chores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.chores li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 6px 4px 12px; border-radius: 14px; background: rgba(160, 120, 70, 0.12); font-weight: 800; font-size: 14px; }
.chores li.next { background: #fff; box-shadow: 0 0 0 2.5px var(--gold), 0 2px 0 rgba(0, 0, 0, 0.1); }
.chores li.done { opacity: 0.55; }
.chores li.later { opacity: 0.75; }
.ch-title { flex: 1; }
.ch-thumb { flex: none; width: 52px; height: 52px; margin-left: -6px; border-radius: 12px; background: #f7ecd8 center/90% no-repeat; box-shadow: inset 0 0 0 1.5px rgba(160, 120, 70, 0.18); }
.chores li.next .ch-thumb { background-color: #fdf3df; }
.chores li.later .ch-thumb { filter: saturate(0.35) brightness(1.05); }
.chores li.done .ch-thumb { filter: none; }
.ch-ok { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font: 900 15px/28px var(--font); text-align: center; font-style: normal; }
.ch-cost { display: flex; align-items: center; gap: 2px; font-weight: 900; padding-right: 6px; }
.ch-cost .ico { width: 18px; height: 18px; }
.chores .gbtn { min-height: 40px; padding: 4px 12px; font-size: 15px; }
.day-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.day-bar span { flex: 1; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, 0.12); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
.day-bar em { display: block; height: 100%; background: linear-gradient(#9cf07a, #45b84f); border-radius: 7px; }
.reward { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 6px 0; font: 900 20px var(--font); }
.reward p { display: flex; align-items: center; gap: 4px; margin: 0; }
.reward .ico { width: 30px; height: 30px; }
.reward-ico { width: 84px; height: 84px; }
.lvl-big { display: grid; place-items: center; margin: 4px 0 8px; animation: pulse 1.2s infinite; }

/* выбор вида поверх пристани */
.look-pick { position: absolute; z-index: 8; left: 10px; right: 10px; bottom: max(16px, calc(var(--kit-safe-bottom) + 8px)); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px; border-radius: 24px; background: linear-gradient(#fffaf0, #f3e2c1); color: var(--ink-d); box-shadow: inset 0 -4px 0 #d9bf8f, 0 5px 0 rgba(0, 0, 0, 0.22), 0 0 0 3px #fff; max-width: 520px; margin: 0 auto; }
.look-pick > b { font: 900 17px var(--font); }
.pick-row { display: flex; gap: 10px; }
.pick-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 0; border-radius: 16px; background: rgba(160, 120, 70, 0.14); color: var(--ink-d); font: 900 12px var(--font); }
.pick-opt.on { background: #fff; box-shadow: 0 0 0 3px var(--green); }
.sw { display: block; width: 64px; height: 44px; border-radius: 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); background: #ccc; }
.look-pick .gbtn { width: 100%; }
.sw.sw-3d { width: 84px; height: 70px; background-color: #fdf6e8 !important; background-position: center !important; background-size: 92% !important; background-repeat: no-repeat !important; box-shadow: inset 0 0 0 1.5px rgba(160, 120, 70, 0.2); }

/* полёт значков, всплывашка */
.fly { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.fly-it { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; background-size: contain; background-repeat: no-repeat; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); }
.fly-it img { width: 52px; height: 52px; margin: -9px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 150px; max-width: 86vw; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 16px; background: rgba(20, 40, 70, 0.9);
  font: 800 14px/1.3 var(--font); text-align: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); pointer-events: none; }
.p-bubble { position: fixed; z-index: 55; transform: translate(-50%, -100%); max-width: 220px; padding: 8px 12px 9px; border-radius: 16px; background: #fffaf0; color: var(--ink-d);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18), 0 0 0 2px #fff; font: 700 13px/1.3 var(--font); pointer-events: none; animation: bubIn 0.25s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes bubIn { from { transform: translate(-50%, -80%) scale(0.7); opacity: 0; } }
.p-bubble b { display: block; font: 900 12px var(--font); margin-bottom: 1px; }
.p-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fffaf0; }
.p-bubble.out { opacity: 0; transition: opacity 0.3s; }
.toast.show { animation: orderIn 0.25s cubic-bezier(.2, 1.4, .4, 1) both; }
.noscript { padding: 40px; text-align: center; }

@media (min-width: 560px) {
  .board-screen > * { max-width: 560px; margin-left: auto !important; margin-right: auto !important; width: 100%; box-sizing: border-box; }
  .board-screen > .board-host { max-width: none; }
}

/* образцы вида для выбора (цвета совпадают со сценой harbor.py) */
.sw-tables-a { background: linear-gradient(135deg, #ffffff 0% 50%, #3f86c4 50% 100%); }
.sw-tables-b { background: linear-gradient(135deg, #d6a676 0% 50%, #7a5232 50% 100%); }
.sw-tables-c { background: linear-gradient(135deg, #2f7fc1 0% 50%, #e85a4a 50% 100%); }
.sw-walls-a { background: linear-gradient(135deg, #e8f3fb 0% 50%, #3f86c4 50% 100%); }
.sw-walls-b { background: linear-gradient(135deg, #ffd9c2 0% 50%, #e0735a 50% 100%); }
.sw-walls-c { background: linear-gradient(135deg, #cfeedd 0% 50%, #3f9f6f 50% 100%); }
.sw-umbrellas-a { background: linear-gradient(135deg, #e85a4a 0% 50%, #ffffff 50% 100%); }
.sw-umbrellas-b { background: linear-gradient(135deg, #2f7fc1 0% 50%, #ffe082 50% 100%); }
.sw-umbrellas-c { background: linear-gradient(135deg, #3f9f6f 0% 50%, #fff6e4 50% 100%); }
.sw-boatpaint-a { background: linear-gradient(135deg, #f7f3ea 0% 50%, #e85a4a 50% 100%); }
.sw-boatpaint-b { background: linear-gradient(135deg, #f7f3ea 0% 50%, #ffb300 50% 100%); }
.sw-boatpaint-c { background: linear-gradient(135deg, #f7f3ea 0% 50%, #3f9f6f 50% 100%); }
.sw-lanterns-a { background: linear-gradient(135deg, #3c3c46 0% 50%, #ffe082 50% 100%); }
.sw-lanterns-b { background: linear-gradient(135deg, #e8b630 0% 50%, #fff3c4 50% 100%); }
.sw-lanterns-c { background: linear-gradient(135deg, #ffffff 0% 50%, #b3e5fc 50% 100%); }
.sw-stand-a { background: linear-gradient(135deg, #ff9db5 0% 50%, #ffffff 50% 100%); }
.sw-stand-b { background: linear-gradient(135deg, #7fc9a0 0% 50%, #fff6e4 50% 100%); }
.sw-stand-c { background: linear-gradient(135deg, #ffd65a 0% 50%, #5aa1cf 50% 100%); }
.sw-arch-a { background: linear-gradient(135deg, #ff4d6d 0% 33%, #ffffff 33% 67%, #ff8fab 67% 100%); }
.sw-arch-b { background: linear-gradient(135deg, #ffd23f 0% 33%, #ff9f43 33% 67%, #ffffff 67% 100%); }
.sw-arch-c { background: linear-gradient(135deg, #c77dff 0% 33%, #7fc9e0 33% 67%, #ffffff 67% 100%); }
.sw-balloons-a { background: linear-gradient(135deg, #ff4d6d 0% 33%, #ffd23f 33% 67%, #3f86c4 67% 100%); }
.sw-balloons-b { background: linear-gradient(135deg, #ff8fab 0% 33%, #ffffff 33% 67%, #c77dff 67% 100%); }
.sw-balloons-c { background: linear-gradient(135deg, #7fc9a0 0% 33%, #ffd23f 33% 67%, #ff9f43 67% 100%); }

/* первые шаги: рука и подсказка */
.coach { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.coach p { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: max-content; max-width: 86vw; margin: 0; padding: 8px 14px; border-radius: 14px;
  background: #fffaf0; color: var(--ink-d, #4a3418); font: 900 15px/1.25 var(--font); text-align: center; box-shadow: 0 3px 0 rgba(160, 110, 50, 0.35), 0 6px 18px rgba(0, 0, 0, 0.2); animation: orderIn 0.3s both; }
.coach-hand { position: absolute; left: 0; top: 0; font-size: 44px; font-style: normal; line-height: 1; margin: -4px 0 0 -16px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
  transform: translate(var(--x1), var(--y1)); animation: coachTap 1s ease-in-out infinite; }
.coach.drag .coach-hand { animation: coachDrag 1.8s ease-in-out infinite; }
@keyframes coachTap { 0%, 100% { transform: translate(var(--x1), var(--y1)) scale(1); } 50% { transform: translate(var(--x1), calc(var(--y1) + 10px)) scale(0.88); } }
@keyframes coachDrag { 0%, 12% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 0; } 20% { opacity: 1; transform: translate(var(--x1), var(--y1)) scale(0.9); }
  75% { transform: translate(var(--x2), var(--y2)) scale(0.9); opacity: 1; } 90%, 100% { transform: translate(var(--x2), var(--y2)) scale(1); opacity: 0; } }
.res .plus.free { animation: pulse 1.1s ease-in-out infinite; background: #ffcf3a; box-shadow: inset 0 -2px 0 #d79a2a, 0 0 0 2px #fff, 0 0 10px #ffe27a; }

/* широкое окно (десктоп Link): плашки и кнопки пристани — колонкой по центру, как на прилавке */
@media (min-width: 700px) {
  .hub .hud { left: 50%; right: auto; width: 560px; transform: translateX(-50%); box-sizing: border-box; }
  .hub-bottom { max-width: 560px; margin: 0 auto; }
}

/* дни 4–5: образцы вида */
.sw-kayaks-a { background: linear-gradient(135deg, #ff7a45 0% 33%, #ffd23f 33% 66%, #3f86c4 66% 100%); }
.sw-kayaks-b { background: linear-gradient(135deg, #2fb5a8 0% 33%, #ff8fab 33% 66%, #ffd23f 66% 100%); }
.sw-kayaks-c { background: linear-gradient(135deg, #e85a4a 0% 33%, #ffffff 33% 66%, #3f9f6f 66% 100%); }
.sw-shack-a { background: linear-gradient(135deg, #e6c46f 0% 50%, #ff8a3d 50% 100%); }
.sw-shack-b { background: linear-gradient(135deg, #e6c46f 0% 50%, #2fb5a8 50% 100%); }
.sw-shack-c { background: linear-gradient(135deg, #e6c46f 0% 50%, #ff6b8a 50% 100%); }
.sw-sunbeds-a { background: linear-gradient(135deg, #ffffff 0% 50%, #3f86c4 50% 100%); }
.sw-sunbeds-b { background: linear-gradient(135deg, #fff3c4 0% 50%, #ff8a3d 50% 100%); }
.sw-sunbeds-c { background: linear-gradient(135deg, #ffe082 0% 50%, #3f9f6f 50% 100%); }
.sw-stalls-a { background: repeating-linear-gradient(90deg, #e85a4a 0 10px, #ffffff 10px 20px); }
.sw-stalls-b { background: repeating-linear-gradient(90deg, #3f86c4 0 10px, #ffe082 10px 20px); }
.sw-stalls-c { background: repeating-linear-gradient(90deg, #7a5ad0 0 10px, #ffd6f0 10px 20px); }
.sw-bonfire-a { background: linear-gradient(135deg, #e85a4a 0% 50%, #fff3c4 50% 100%); }
.sw-bonfire-b { background: linear-gradient(135deg, #3f86c4 0% 50%, #ffffff 50% 100%); }
.sw-bonfire-c { background: linear-gradient(135deg, #3f9f6f 0% 50%, #ffe082 50% 100%); }
.sw-kiosk-a { background: repeating-linear-gradient(90deg, #ff8a3d 0 10px, #fff6e4 10px 20px); }
.sw-kiosk-b { background: repeating-linear-gradient(90deg, #5aa1cf 0 10px, #ffffff 10px 20px); }
.sw-kiosk-c { background: repeating-linear-gradient(90deg, #c77dff 0 10px, #fff3c4 10px 20px); }
.sw-hammocks-a { background: linear-gradient(135deg, #e85a4a 0% 50%, #fff3c4 50% 100%); }
.sw-hammocks-b { background: linear-gradient(135deg, #2fb5a8 0% 50%, #ffffff 50% 100%); }
.sw-hammocks-c { background: linear-gradient(135deg, #ffb300 0% 50%, #3f86c4 50% 100%); }
.sw-carousel-a { background: linear-gradient(135deg, #e85a4a 0% 50%, #ffe082 50% 100%); }
.sw-carousel-b { background: linear-gradient(135deg, #3f86c4 0% 50%, #ffffff 50% 100%); }
.sw-carousel-c { background: linear-gradient(135deg, #ff8fab 0% 50%, #b5e3ff 50% 100%); }

/* коллекция и задания: кнопки слева на пристани */
.hub-left { position: absolute; z-index: 5; left: max(10px, var(--kit-safe-left)); top: calc(max(10px, var(--kit-safe-top)) + 50px); display: flex; flex-direction: column; gap: 10px; }
.hbtn { position: relative; width: 70px; height: 64px; border: 0; border-radius: 20px; padding: 4px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(#fffaf0, #ffe7b8); box-shadow: inset 0 -4px 0 #e0a64a, 0 3px 0 rgba(0, 0, 0, 0.22), 0 0 0 2px #fff; cursor: pointer; }
.hbtn:active { transform: translateY(2px); }
.hbtn small { font: 900 10px/1 var(--font); white-space: nowrap; letter-spacing: -0.2px; color: var(--ink-d); }
.ico-album { width: 34px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Crect x='3' y='3' width='28' height='24' rx='4' fill='%233f86c4' stroke='%23123d66' stroke-width='2'/%3E%3Crect x='7' y='3' width='3' height='24' fill='%23123d66' opacity='.35'/%3E%3Cpath d='M20 8l2.2 4.4 4.8.7-3.5 3.4.8 4.8-4.3-2.3-4.3 2.3.8-4.8-3.5-3.4 4.8-.7z' fill='%23ffd23f' stroke='%23a86b00' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ico-shell { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 19.6 12 22.6 15 19.6z' fill='%23f08a6a' stroke='%23b8483a' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M12 20.8 4.6 17.2C1.6 11.8 3.2 4.8 12 2.8c8.8 2 10.4 9 7.4 14.4z' fill='%23ffb48e' stroke='%23b8483a' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M12 20.3 5.6 6.8M12 20.3 8.8 4.2M12 20.3V3.4M12 20.3 15.2 4.2M12 20.3 18.4 6.8' stroke='%23e0745a' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6.6 9.6C7.6 7 9 5.6 10.4 5' stroke='%23ffe6d6' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); }
.ico-week { width: 32px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 19.6 12 22.6 15 19.6z' fill='%23f08a6a' stroke='%23b8483a' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M12 20.8 4.6 17.2C1.6 11.8 3.2 4.8 12 2.8c8.8 2 10.4 9 7.4 14.4z' fill='%23ffb48e' stroke='%23b8483a' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M12 20.3 5.6 6.8M12 20.3 8.8 4.2M12 20.3V3.4M12 20.3 15.2 4.2M12 20.3 18.4 6.8' stroke='%23e0745a' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6.6 9.6C7.6 7 9 5.6 10.4 5' stroke='%23ffe6d6' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat; }
/* улучшение генератора */
.ibtn.off { filter: grayscale(0.85); opacity: 0.75; }
.ibtn small .ico { width: 12px; height: 12px; }
.up-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 2px; }
.up-ico { width: 92px; height: 92px; object-fit: contain; }
.up-arrow { font: 900 26px/1 var(--font); color: #3fbf6f; font-style: normal; }
.up-name { margin: 0 0 10px; text-align: center; font: 900 15px/1.2 var(--font); color: var(--ink-d); }
.up-rows { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.up-row { display: grid; grid-template-columns: 1fr auto 18px auto; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 14px; background: #fbf1dd; box-shadow: inset 0 -3px 0 rgba(150, 100, 40, 0.15); font: 800 14px/1.2 var(--font); color: var(--ink-d); }
.up-row span { min-width: 0; }
.up-row b { font-weight: 900; text-align: right; white-space: nowrap; }
.up-row i { font-style: normal; color: #b39a7a; text-align: center; }
.up-row .up-new { color: #2e9c5a; }
.up-btn { width: 100%; height: 48px; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.up-btn .ico { width: 20px; height: 20px; }
/* особый гость */
.order.vip { background: linear-gradient(#fff6d6, #ffe08f); box-shadow: inset 0 -3px 0 #e2b84a, 0 3px 0 rgba(0, 0, 0, 0.18), 0 0 0 2.5px #f2b01e; }
.order.vip.ready { background: linear-gradient(#fff6d6, #ffe08f); box-shadow: inset 0 -3px 0 #e2b84a, 0 3px 0 rgba(0, 0, 0, 0.18), 0 0 0 3px #61d07c; }
.o-face { position: relative; flex: none; }
.o-crown { position: absolute; z-index: 2; left: 50%; top: -9px; width: 28px; height: 22px; margin-left: -14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M3.5 18.5 2 6.5l6.5 5L14 2.5l5.5 9 6.5-5-1.5 12z' fill='%23ffd23f' stroke='%23a86b00' stroke-width='1.6' stroke-linejoin='round'/%3E%3Crect x='3.5' y='16.5' width='21' height='4' rx='1.5' fill='%23f2b01e' stroke='%23a86b00' stroke-width='1.4'/%3E%3Ccircle cx='14' cy='12.5' r='2' fill='%23e85a4a'/%3E%3Ccircle cx='8.5' cy='14' r='1.4' fill='%236fb7ff'/%3E%3Ccircle cx='19.5' cy='14' r='1.4' fill='%236fd39a'/%3E%3C/svg%3E") center/contain no-repeat; transform: rotate(-12deg); }
.o-time { position: absolute; z-index: 2; left: 50%; bottom: -5px; transform: translateX(-50%); padding: 1px 6px; border-radius: 9px; background: #e85a4a; box-shadow: 0 0 0 2px #fff; color: #fff; font: 900 11px/15px var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-time.low { animation: pulse 0.8s ease-in-out infinite; }
.o-pl { display: flex; align-items: center; gap: 1px; color: #6a55c8; }
.o-reward .o-pl .ico, .o-serve .o-pl .ico { width: 15px; height: 15px; }
.o-serve .o-pl, .o-serve .o-sh { color: inherit; }
/* Морская неделя */
.wk-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 10px; border-radius: 16px; background: linear-gradient(180deg, #e3f4ff, #c8e7fb); box-shadow: inset 0 -3px 0 rgba(40, 110, 170, 0.18); }
.wk-head > .ico { width: 40px; height: 40px; }
.wk-prog { flex: 1; min-width: 0; }
.wk-prog b { display: block; font: 900 15px/1.2 var(--font); color: var(--ink-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-bar { height: 12px; margin-top: 5px; border-radius: 6px; background: rgba(30, 80, 130, 0.18); overflow: hidden; }
.wk-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff9f7a, #ff7a8a); }
.wk-list { display: flex; flex-direction: column; gap: 6px; }
.wk-row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 4px 8px; border-radius: 16px; background: #fbf1dd; box-shadow: inset 0 -3px 0 rgba(150, 100, 40, 0.15); }
.wk-need { flex: none; width: 58px; display: flex; align-items: center; gap: 2px; font: 900 14px/1 var(--font); color: var(--ink-d); }
.wk-need .ico { width: 20px; height: 20px; }
.wk-gift { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 900 14px/1 var(--font); color: var(--ink-d); }
.wk-gift img { width: 42px; height: 42px; object-fit: contain; }
.wk-gift span { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.wk-gift .ico { width: 20px; height: 20px; }
.wk-act { flex: none; min-width: 34px; display: flex; justify-content: flex-end; }
.wk-act .gbtn { height: 38px; padding: 0 14px; font-size: 15px; }
.wk-ok { width: 30px; height: 30px; border-radius: 50%; background: #3fbf6f; color: #fff; font: 900 18px/30px var(--font); text-align: center; box-shadow: 0 0 0 3px #fff; }
.wk-lock { font: 900 18px/1 var(--font); color: rgba(120, 80, 40, 0.45); }
.wk-row.got > .wk-need, .wk-row.got > .wk-gift { opacity: 0.5; }
.wk-row.now { background: #fff; box-shadow: 0 0 0 3px #3fbf6f, 0 6px 14px rgba(63, 191, 111, 0.3); }
.wk-row.big { background: linear-gradient(180deg, #fff3c4, #fbe2a0); }
.wk-row.big.now { box-shadow: 0 0 0 3px #3fbf6f, 0 6px 14px rgba(63, 191, 111, 0.3); }
.o-sh { display: flex; align-items: center; gap: 1px; font-size: 11.5px; color: #c2503a; }
.o-reward .o-sh .ico, .o-serve .o-sh .ico { width: 15px; height: 15px; }
.sh-pop { position: fixed; z-index: 40; pointer-events: none; display: flex; align-items: center; gap: 2px; padding: 3px 8px 3px 4px; border-radius: 14px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); font: 900 15px/1 var(--font); color: #c2503a; transform: translate(-50%, 0); animation: shPop 1.1s ease-out both; }
.sh-pop .ico { width: 20px; height: 20px; }
@keyframes shPop { 0% { transform: translate(-50%, 10px) scale(0.6); } 20% { transform: translate(-50%, 0) scale(1.1); } 75% { transform: translate(-50%, -26px) scale(1); } 100% { transform: translate(-50%, -34px) scale(0.4); visibility: hidden; } }
.ico-gifts { width: 32px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='4' y='13' width='24' height='16' rx='3' fill='%23e85a4a' stroke='%23a3264a' stroke-width='2'/%3E%3Crect x='2.5' y='8.5' width='27' height='6' rx='2.5' fill='%23ff7a6b' stroke='%23a3264a' stroke-width='2'/%3E%3Crect x='14' y='8.5' width='4' height='20.5' fill='%23ffd23f'/%3E%3Cpath d='M16 8.5c-2-4.5-7.5-5.5-7.5-2.2 0 2.4 4 2.2 7.5 2.2zm0 0c2-4.5 7.5-5.5 7.5-2.2 0 2.4-4 2.2-7.5 2.2z' fill='%23ffd23f' stroke='%23a86b00' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 12px; }
.gday { position: relative; min-width: 0; border-radius: 16px; background: #fbf1dd; box-shadow: inset 0 -3px 0 rgba(150, 100, 40, 0.15); padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gday b { font: 900 11px/1.1 var(--font); color: var(--ink-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gday .gimgs { display: flex; justify-content: center; align-items: center; gap: 2px; min-height: 40px; flex-wrap: wrap; }
.gday .gimgs img { width: 36px; height: 36px; object-fit: contain; }
.gday .gimgs .ico { width: 22px; height: 22px; }
.gday small { font: 900 12px/1 var(--font); color: var(--ink-d); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.gday small .ico { width: 14px; height: 14px; }
.gday.big { grid-column: span 2; background: linear-gradient(180deg, #fff3c4, #fbe2a0); }
.gday.big .gimgs img { width: 44px; height: 44px; }
.gday.got { opacity: 1; }
.gday.got > * { opacity: 0.5; }
.gday.got::after { content: '✓'; position: absolute; left: 50%; top: 30px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: #3fbf6f; box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(0, 0, 0, 0.18); color: #fff; font: 900 18px/30px var(--font); text-align: center; }
.gday.now { background: #fff; box-shadow: 0 0 0 3px #3fbf6f, 0 6px 14px rgba(63, 191, 111, 0.35); animation: gnow 1.6s ease-in-out infinite; }
@keyframes gnow { 50% { transform: translateY(-2px); } }
.gifts-btn { width: 100%; height: 48px; font-size: 17px; }
.ico-tasks { width: 30px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 32'%3E%3Crect x='3' y='4' width='24' height='26' rx='4' fill='%23fff6e4' stroke='%239a6435' stroke-width='2'/%3E%3Crect x='9' y='1.5' width='12' height='6' rx='2' fill='%23e85a4a' stroke='%23a3264a' stroke-width='1.5'/%3E%3Cpath d='M8 15l3 3 5-6M8 24h14' stroke='%233f9f6f' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.sheet-sub { margin: -4px 4px 12px; text-align: center; font: 700 13px/1.3 var(--font); color: var(--ink-m, #7a5a35); }

.al-sec { margin: 0 0 12px; }
.al-sec h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 6px; font: 900 15px/1.2 var(--font); color: var(--ink-d); }
.al-sec h3 small { font: 800 12px/1 var(--font); color: var(--ink-m, #7a5a35); }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.al-it { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; background: #f3e6cc; box-shadow: inset 0 -3px 0 rgba(150, 100, 40, 0.18); cursor: pointer; }
.al-it .al-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.al-it.s0 .al-img { filter: brightness(0) opacity(0.18); }
.al-it.s1 { background: radial-gradient(#fff6c8, #ffd85e); box-shadow: 0 0 0 2px #fff, 0 0 12px 3px rgba(255, 200, 60, 0.85); animation: pulse 1.2s ease-in-out infinite; }
.al-rw { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: flex; align-items: center; gap: 1px; padding: 1px 5px 1px 2px; border-radius: 9px;
  background: #fff; font: 900 11px/1 var(--font); color: var(--ink-d); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); white-space: nowrap; }
.al-rw .ico { width: 13px; height: 13px; }

.task { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 0 8px; border-radius: 16px; background: #fbf1dd; box-shadow: inset 0 -3px 0 rgba(150, 100, 40, 0.15); }
.task.ready { background: #e9f8dc; }
.task.done { opacity: 0.6; }
.task-img { flex: none; width: 46px; height: 46px; object-fit: contain; }
.task-mid { flex: 1 1 auto; min-width: 0; font: 900 14px/1.25 var(--font); color: var(--ink-d); }
.task-mid b { display: block; font: 900 14px/1.25 var(--font); margin-bottom: 5px; }
.task-bar { position: relative; display: block; height: 16px; border-radius: 8px; background: rgba(120, 80, 30, 0.15); overflow: hidden; }
.task-bar em { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#8fdc6a, #4fb33f); border-radius: 8px; }
.task-bar small { position: relative; display: block; text-align: center; font: 900 11px/16px var(--font); color: #2d3a1e; }
.task-btn { flex: none; min-width: 72px; height: 40px; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 14px; }
.task-btn .ico { width: 16px; height: 16px; }
.task-btn.btn-off { background: #e9dcc3; color: #8a7350; box-shadow: inset 0 -3px 0 rgba(120, 80, 30, 0.2); }
.task.bonus { background: linear-gradient(#fff3d0, #ffe2a0); }

/* ---------------------------------------------------------------- лавка у причала */
.ico-shop { width: 32px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='5' y='14' width='22' height='15' rx='2.5' fill='%23fff3dc' stroke='%238a5a2b' stroke-width='2'/%3E%3Crect x='12.5' y='19' width='7' height='10' rx='1.5' fill='%2366a8d8' stroke='%238a5a2b' stroke-width='1.6'/%3E%3Cpath d='M3 9.5 6 4h20l3 5.5v2.3a3.3 3.3 0 0 1-6.5 0 3.3 3.3 0 0 1-6.5 0 3.3 3.3 0 0 1-6.5 0 3.3 3.3 0 0 1-6.5 0z' fill='%23e85a4a' stroke='%23a3264a' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9.5 4 9 11.8M16 4v7.8M22.5 4l.5 7.8' stroke='%23fff3dc' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px; }
.shop-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 16px; background: #fbf1dd; box-shadow: inset 0 -3px 0 rgba(150, 100, 40, 0.15); min-width: 0; }
.shop-item.free { background: #fff1b8; box-shadow: inset 0 -3px 0 rgba(170, 120, 0, 0.22), 0 0 0 2px #ffd23f; }
.shop-item.sold { opacity: 0.55; }
.shop-img { width: 58px; height: 58px; object-fit: contain; }
.shop-name { font: 800 12px/1.15 var(--font); color: var(--ink-d); text-align: center; min-height: 28px; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.shop-left { font: 700 11px/1 var(--font); color: #9a7a52; min-height: 11px; }
.shop-buy { width: 100%; min-height: 34px; padding: 4px 6px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 2px; }
.shop-buy .ico { width: 18px; height: 18px; }
.shop-buy.coin { background: linear-gradient(#ffd65a, #f0a91a); box-shadow: inset 0 -3px 0 #b97b0a; color: #5a3a00; }
.shop-buy.pearl, .shop-refresh.pearl { background: linear-gradient(#a99af7, #7a66e0); box-shadow: inset 0 -3px 0 #5544b0; color: #fff; }
.shop-buy:disabled { background: #e3d5bd; box-shadow: none; color: #8a6d4a; }
.shop-refresh { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.shop-refresh em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.shop-refresh .ico { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- вкладки заданий и достижения */
.tabs { display: flex; gap: 6px; margin: -2px 0 10px; padding: 4px; border-radius: 16px; background: rgba(120, 80, 30, 0.12); }
.tab { position: relative; flex: 1 1 0; min-width: 0; height: 36px; border: 0; border-radius: 12px; background: transparent; font: 900 14px/1 var(--font); color: #8a6a44; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.tab.on { background: #fff; color: var(--ink-d); box-shadow: 0 2px 0 rgba(120, 80, 30, 0.18); }
.tab .dot { position: absolute; top: 3px; right: 6px; }
.ach-stars { display: flex; gap: 1px; margin: -3px 0 4px; font: 900 13px/1 var(--font); color: rgba(120, 80, 30, 0.25); }
.ach-stars .on { color: #f2b51e; text-shadow: 0 1px 0 #b97b0a; }
.task.ach.done .task-mid b { margin-bottom: 3px; }
.ach-chest { display: inline-block; width: 16px; height: 14px; margin-left: 2px; border-radius: 3px; background: linear-gradient(#e0954a 0 45%, #ffd23f 45% 58%, #b8692a 58%); box-shadow: inset 0 0 0 1.5px #7a4518; }
