:root {
  --tinta: #1d3a4f;       /* texto sobre fundos claros */
  --contorno: #2a1a12;    /* contorno cartoon */
  --azul: #2d9ad6;
  --azul-escuro: #1b6fa3;
  --agua-1: #d4f1ff;
  --agua-2: #9fdcfb;
  --verde: #5ec43a;
  --verde-escuro: #3a8a22;
  --azulbtn: #3aa6e6;
  --azulbtn-escuro: #1f6fa8;
  --vermelho: #e63946;
  --vermelho-escuro: #a3202b;
  --sol: #ffcf3f;
  --madeira: #b07440;
  --madeira-escura: #6b4226;
  --papel: #fff6e8;
  --font: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --display: 'Lilita One', 'Baloo 2', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; margin: 0; height: 100%; overflow: hidden; background: #62c04f; font-family: var(--font); color: #fff; user-select: none; -webkit-user-select: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
.hidden { display: none !important; }
.outline { -webkit-text-stroke: 4px var(--contorno); paint-order: stroke fill; text-shadow: 0 2px 0 var(--contorno); }

/* ---------- botões (gordinhos, com "degrau" embaixo) ---------- */
button { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .3px; color: #fff; background: var(--verde);
  border: 3px solid var(--contorno); border-radius: 12px; padding: 5px 14px; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--verde-escuro), 0 3px 0 var(--contorno); text-shadow: 0 1.5px 0 rgba(0,0,0,.28); transition: transform .06s, filter .1s; }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--verde-escuro), 0 1px 0 var(--contorno); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; }
button.small { font-size: 14px; padding: 2px 10px; border-radius: 10px; }
button.green { background: var(--verde); box-shadow: inset 0 -4px 0 var(--verde-escuro), 0 3px 0 var(--contorno); }
button.blue, button.ghost { background: var(--azulbtn); box-shadow: inset 0 -4px 0 var(--azulbtn-escuro), 0 3px 0 var(--contorno); }
button.red { background: var(--vermelho); box-shadow: inset 0 -4px 0 var(--vermelho-escuro), 0 3px 0 var(--contorno); }
button:disabled { filter: grayscale(.8) brightness(.9); cursor: not-allowed; }
button .price { margin-left: 4px; }
kbd { font-family: var(--font); background: var(--tinta); color: #fff; border-radius: 5px; padding: 0 5px; font-size: 12px; }

/* ---------- HUD ---------- */
.hud-card { position: fixed; background: var(--azul); border: 3px solid #fff; border-radius: 16px; box-shadow: 0 0 0 3px var(--contorno), 0 5px 0 3px var(--contorno); }
#card-player { top: 14px; left: 14px; display: flex; gap: 10px; padding: 6px 14px 6px 6px; align-items: center; cursor: pointer; }
#avatar { background: radial-gradient(circle at 50% 30%, #bdeaff, #6cc4f0); border-radius: 12px; border: 3px solid var(--contorno); }
.pc-name { font-family: var(--display); font-size: 19px; display: flex; gap: 6px; align-items: center; line-height: 1; text-shadow: 0 2px 0 var(--contorno); }
.lvl { display: inline-grid; place-items: center; min-width: 28px; height: 28px; background: var(--vermelho); border: 3px solid var(--contorno);
  border-radius: 8px 8px 14px 14px; font-family: var(--display); font-size: 15px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.xpbar { position: relative; width: 170px; height: 16px; background: var(--tinta); border: 2px solid var(--contorno); border-radius: 9px; margin: 5px 0 3px; overflow: hidden; }
.xpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ffe27a, #f5b800); width: 0; transition: width .4s; }
.xpbar span { position: absolute; inset: 0; text-align: center; font-size: 11px; font-weight: 800; line-height: 13px; color: #fff; -webkit-text-stroke: 2.5px var(--contorno); paint-order: stroke fill; }
.coins { display: flex; gap: 6px; align-items: center; font-family: var(--display); font-size: 18px; text-shadow: 0 2px 0 var(--contorno); }
.coin { display: inline-block; flex: none; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a8, #f2b705 60%, #b07d00); border: 2px solid var(--contorno); vertical-align: -3px; }
#clock { top: 14px; left: 50%; transform: translateX(-50%); padding: 4px 8px 4px 14px; display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 800; text-shadow: 0 2px 0 var(--contorno); white-space: nowrap; }
#clock b { font-family: var(--display); font-weight: 400; font-size: 21px; }
#clock-room { opacity: .9; font-size: 13px; }
#clock-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--sol); border: 3px solid var(--contorno); box-shadow: 0 0 0 3px rgba(255,220,80,.4); }
#clock-icon.night { background: #dfe7ff; box-shadow: inset -6px -2px 0 #8ea0d8; }
button.help { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--sol); color: var(--contorno); text-shadow: none; font-size: 19px; box-shadow: inset 0 -3px 0 #d39b00, 0 2px 0 var(--contorno); }
#hud-buttons { position: fixed; top: 14px; right: 14px; display: flex; gap: 8px; }
.hbtn { background: var(--azulbtn); box-shadow: inset 0 -4px 0 var(--azulbtn-escuro), 0 3px 0 var(--contorno); display: inline-flex; gap: 6px; align-items: center; border-color: var(--contorno); }
.hbtn.icon { font-size: 20px; padding: 3px 10px; font-family: var(--font); }
.bi { width: 18px; height: 18px; display: inline-block; background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.bi-home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 12h3v10h6v-6h4v6h6V12h3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 12h3v10h6v-6h4v6h6V12h3z'/%3E%3C/svg%3E"); }
.bi-bag { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v3h5l1 17H3L4 5h5zm2 2v1h2V4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v3h5l1 17H3L4 5h5zm2 2v1h2V4z'/%3E%3C/svg%3E"); }
.bi-friends { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='7' r='4'/%3E%3Ccircle cx='17' cy='8' r='3'/%3E%3Cpath d='M0 21c0-5 4-8 8-8s8 3 8 8zm15 0c0-3-1-5-3-6.5 1-.5 2-.5 3-.5 3 0 6 2 6 7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='7' r='4'/%3E%3Ccircle cx='17' cy='8' r='3'/%3E%3Cpath d='M0 21c0-5 4-8 8-8s8 3 8 8zm15 0c0-3-1-5-3-6.5 1-.5 2-.5 3-.5 3 0 6 2 6 7z'/%3E%3C/svg%3E"); }

#minimap-wrap { position: fixed; top: 70px; right: 14px; border: 3px solid #fff; border-radius: 14px; box-shadow: 0 0 0 3px var(--contorno), 0 5px 0 3px var(--contorno); overflow: hidden; cursor: pointer; background: #62c04f; }
#minimap { display: block; width: 200px; height: 150px; }
.mm-zoom { position: absolute; right: 4px; bottom: 4px; display: flex; flex-direction: column; gap: 4px; }
.mm-zoom button { width: 26px; height: 26px; padding: 0; font-size: 18px; line-height: 1; border-radius: 8px; }
#guest-banner { position: fixed; top: 248px; right: 14px; background: rgba(29,58,79,.9); border: 2px solid #fff; border-radius: 12px; padding: 5px 8px 5px 12px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
#prompt { position: fixed; left: 50%; bottom: 210px; transform: translateX(-50%); background: rgba(255,255,255,.95); color: var(--tinta); border: 3px solid var(--contorno); padding: 4px 16px; border-radius: 14px; font-weight: 800; pointer-events: none; box-shadow: 0 3px 0 var(--contorno); }

/* ---------- caixa de pesca (varas) ---------- */
#tacklebox { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
#energy { position: relative; display: flex; gap: 8px; align-items: center; background: var(--azul); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--contorno); padding: 1px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; text-shadow: 0 1px 0 var(--contorno); }
.ebar { width: 160px; height: 12px; background: var(--tinta); border: 2px solid var(--contorno); border-radius: 7px; overflow: hidden; }
.ebar i { display: block; height: 100%; width: 100%; background: #6cc644; transition: width .2s, background .2s; }
#slots { display: flex; gap: 6px; background: linear-gradient(#c98b4c, #a86a35); border: 3px solid var(--contorno); border-radius: 16px; padding: 7px; box-shadow: 0 5px 0 var(--contorno), inset 0 3px 0 rgba(255,255,255,.25), inset 0 -4px 0 rgba(0,0,0,.15); }
.slot { position: relative; width: 168px; height: 82px; background: linear-gradient(#e9f8ff, #bfe7fb); border: 3px solid var(--contorno); border-radius: 12px; color: var(--tinta);
  box-shadow: inset 0 -4px 0 rgba(0,60,100,.15); padding: 4px 6px; cursor: pointer; font-size: 12px; line-height: 1.15; display: flex; gap: 4px; }
.slot.sel { box-shadow: 0 0 0 3px var(--sol), inset 0 -4px 0 rgba(0,60,100,.15); }
.slot .n { position: absolute; top: -10px; left: -9px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--vermelho); color: #fff; border-radius: 50%; font-family: var(--display); font-size: 14px; border: 3px solid var(--contorno); }
.slot-ico { position: relative; width: 52px; flex: none; }
.slot-ico canvas:first-child { position: absolute; left: 2px; top: 2px; }
.slot-ico canvas:last-child { position: absolute; left: 26px; top: 26px; }
.slot-txt { min-width: 0; flex: 1; padding-top: 2px; }
.slot .rn { font-family: var(--display); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .meta { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 700; }
.slot .st { position: absolute; left: 56px; right: 6px; bottom: 5px; text-align: center; border-radius: 8px; font-family: var(--display); font-size: 13px; padding: 1px 0; background: #8aa7b8; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); border: 2px solid var(--contorno); }
.slot .st.bite { background: var(--vermelho); animation: pulse .35s infinite alternate; }
.slot .st.nibble { background: #e8961c; }
.slot .st.fight { background: #ff7a1a; }
.slot .st.cast { background: var(--azulbtn); }
.slot .st.broken { background: #555; }
.slot.empty { opacity: .7; }
.slot .tension { position: absolute; left: 58px; right: 8px; bottom: 30px; height: 6px; background: #3a2414; border-radius: 3px; overflow: hidden; }
.slot .tension i { display: block; height: 100%; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.07); } }
#tb-actions { display: flex; gap: 8px; }

/* ---------- briga: dinamômetro + barras de carga ---------- */
#fightbox { position: fixed; right: 14px; bottom: 150px; width: 420px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; pointer-events: none; }
#fight-canvas { width: 420px; height: 112px; display: block; filter: drop-shadow(0 5px 0 rgba(20,35,46,.9)); }
#f-hint:empty { display: none; }
#f-hint { font-family: var(--display); font-size: 18px; color: var(--sol); text-align: center; -webkit-text-stroke: 5px var(--contorno); paint-order: stroke fill; text-shadow: 0 2px 0 var(--contorno); min-height: 24px; }
.fs-keys { font-size: 12px; text-align: center; font-weight: 700; background: rgba(20,35,46,.75); border-radius: 10px; padding: 2px 8px; align-self: center; }
#fightbox.exhausted #f-hint { color: #ff8a80; }

/* ---------- chat ---------- */
#chat { position: fixed; left: 14px; bottom: 12px; width: 360px; }
#chat-log { max-height: 0; overflow-y: auto; font-size: 14px; padding: 0 10px; color: var(--tinta); background: rgba(255,255,255,.92); border: 3px solid var(--contorno); border-radius: 14px; margin-bottom: 6px; transition: max-height .2s; opacity: 0; pointer-events: none; }
#chat.open #chat-log { max-height: 280px; padding: 6px 10px; opacity: 1; pointer-events: auto; }
#chat-log p { margin: 2px 0; line-height: 1.25; }
#chat-log .tm { font-style: normal; font-size: 11px; opacity: .55; margin-right: 5px; }
#chat-log .who { font-weight: 800; color: #1b6fa3; cursor: pointer; }
#chat-log .whisper { color: #8e3bbf; }
#chat-log .sys { color: #3a8a22; font-weight: 700; }
.chat-row { display: flex; gap: 6px; }
/* o campo para de aceitar letras no limite (como no Habbo): o contador avisa quando está acabando */
.chat-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
#chat-count { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; font-weight: 800; color: #8a9aa6; pointer-events: none; background: rgba(255,255,255,.9); padding: 0 3px; border-radius: 6px; }
#chat-count.full { color: #e63946; }
#chat-input.full { border-color: #e63946; }
#chat-input { flex: 1; min-width: 0; font-family: var(--font); font-size: 14px; padding: 5px 10px; border-radius: 12px; border: 3px solid var(--contorno); background: rgba(255,255,255,.95); color: var(--tinta); font-weight: 600; }

/* ---------- toasts, banner ---------- */
#toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; z-index: 30; }
.toast { background: #fff; color: var(--tinta); border: 3px solid var(--contorno); padding: 5px 14px; border-radius: 14px; font-weight: 800; font-size: 15px; animation: tin .2s ease-out; max-width: 540px; text-align: center; box-shadow: 0 3px 0 var(--contorno); }
.toast.good { background: #e5ffd8; }
.toast.warn { background: #fff4c6; }
.toast.bad { background: #ffe0e2; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
#banner { position: fixed; top: 30%; left: 50%; transform: translate(-50%, -50%); z-index: 40; text-align: center; pointer-events: none; }
#banner .big { font-family: var(--display); font-size: 52px; color: var(--sol); -webkit-text-stroke: 4px var(--contorno); paint-order: stroke; animation: pop .5s ease-out; }
#banner .sub { font-size: 19px; font-weight: 800; -webkit-text-stroke: 4px var(--contorno); paint-order: stroke fill; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- painéis (moldura branca, interior azul-água, placa de madeira) ---------- */
.panel { position: fixed; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 20; width: min(720px, 94vw); max-height: 84vh; display: flex; flex-direction: column;
  background: linear-gradient(var(--agua-1), var(--agua-2)); color: var(--tinta); border: 6px solid #fff; border-radius: 26px;
  box-shadow: 0 0 0 4px var(--contorno), 0 9px 0 4px var(--contorno), 0 24px 60px rgba(0,0,0,.35); padding: 34px 18px 16px; animation: popin .18s ease-out; }
.panel.wide { width: min(940px, 96vw); }
@keyframes popin { from { transform: translate(-50%, -48%) scale(.95); opacity: 0; } }
#panel-body { overflow: auto; padding: 2px 4px 4px; }
.panel.modal { z-index: 50; width: min(480px, 92vw); text-align: center; padding-top: 18px; }
.sign { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; white-space: nowrap;
  background: linear-gradient(#d39a5f, #a86a35); border: 4px solid var(--contorno); border-radius: 14px; padding: 4px 24px; box-shadow: 0 4px 0 var(--contorno), inset 0 3px 0 rgba(255,255,255,.3), inset 0 -4px 0 rgba(0,0,0,.18);
  font-family: var(--display); font-size: 26px; color: #fff; -webkit-text-stroke: 5px var(--contorno); paint-order: stroke fill; text-shadow: 0 3px 0 var(--contorno); }
.sign::before, .sign::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #6b4226; border: 2px solid var(--contorno); }
.sign::before { left: 7px; } .sign::after { right: 7px; }
.sign canvas { margin: -8px 0; }
.panel .close { position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 20px; background: var(--vermelho); box-shadow: inset 0 -4px 0 var(--vermelho-escuro), 0 3px 0 var(--contorno); z-index: 2; }
.panel h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 26px; }
.panel h3 { margin: 14px 0 6px; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--azul-escuro); }
.panel p { margin: 4px 0 8px; }
.muted { opacity: .75; font-size: 14px; }
.tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; justify-content: center; }
.tabs button { background: #8fbcd4; box-shadow: inset 0 -4px 0 #5f8ea8, 0 3px 0 var(--contorno); }
.tabs button.on { background: var(--verde); box-shadow: inset 0 -4px 0 var(--verde-escuro), 0 3px 0 var(--contorno); }

/* grade de cards + detalhe (inventário ilustrado) */
.split { display: grid; grid-template-columns: 270px 1fr; gap: 14px; align-items: start; }
.detail { background: #fff; border: 3px solid var(--contorno); border-radius: 18px; padding: 12px; text-align: center; box-shadow: 0 4px 0 rgba(42,26,18,.6); position: sticky; top: 0; }
.d-pic { display: grid; place-items: center; min-height: 110px; border-radius: 14px; background: radial-gradient(circle at 50% 60%, #eef9ff, #cdeeff); border: 2px solid #b6dff3; margin-bottom: 8px; }
.d-pic.water { background: linear-gradient(#9fe3ff, #2aa3e6); border-color: #1b6fa3; }
.d-name { font-family: var(--display); font-size: 24px; line-height: 1.05; color: var(--tinta); }
.d-sci { font-style: italic; opacity: .7; font-size: 14px; margin-bottom: 4px; }
.d-stats { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.d-stats > span { background: #e7f6ff; border: 2px solid #b6dff3; border-radius: 10px; padding: 0 8px; font-weight: 800; }
.d-desc { font-size: 14px; line-height: 1.25; margin: 6px 0; }
.d-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; margin-top: 8px; }
.d-price { font-family: var(--display); font-size: 22px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cards.inline { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { position: relative; background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 6px 4px 4px; text-align: center; cursor: pointer; box-shadow: inset 0 -5px 0 #d6eefa, 0 3px 0 rgba(42,26,18,.5); transition: transform .08s; overflow: hidden; }
.card:hover { transform: translateY(-2px); }
.card.sel { background: #fff8d6; box-shadow: 0 0 0 3px var(--sol), inset 0 -5px 0 #f2e3a0; }
.card.locked { background: #e7eef2; }
.card-ico { min-height: 52px; display: grid; place-items: center; }
.card-lbl { font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-n { position: absolute; right: 4px; top: 4px; font-family: var(--font); font-weight: 800; font-size: 12px; line-height: 17px; color: #fff; background: var(--tinta); border-radius: 9px; padding: 0 6px; }
.card-tag { position: absolute; left: 5px; top: 3px; font-weight: 900; color: var(--verde-escuro); }
.card-rar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--rar); }
.gear-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 6px 10px; box-shadow: 0 3px 0 rgba(42,26,18,.5); }
.gear-card.broken { background: #ffe9ea; }
.gear-card .t, .li .t, .bot-card .t, .food-row .t, .rank .t { font-family: var(--display); font-size: 16px; }
.gear-card .d, .bot-card .d { font-size: 13px; line-height: 1.2; opacity: .85; }
.grow { flex: 1; min-width: 0; }
.empty-msg { text-align: center; padding: 20px; background: rgba(255,255,255,.6); border-radius: 16px; border: 3px dashed #7fb9d6; }
.rar { display: inline-block; font-size: 12px; font-weight: 800; padding: 0 8px; border-radius: 8px; color: var(--contorno); border: 2px solid var(--contorno); }
.stage { display: inline-block; font-size: 12px; font-weight: 800; padding: 0 8px; border-radius: 8px; background: #e7f6ff; border: 2px solid var(--contorno); margin-left: 4px; }
.price { display: inline-flex; gap: 4px; align-items: center; font-weight: 800; white-space: nowrap; }
.lock { font-weight: 800; color: #b06a00; }
.lock.big { font-family: var(--display); font-size: 18px; }
.list { display: flex; flex-direction: column; gap: 6px; }
.li { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 5px 10px; box-shadow: 0 3px 0 rgba(42,26,18,.5); }
.li.note { background: #fffbe8; }
.li.done { opacity: .7; }
.stamp { font-family: var(--display); color: var(--verde-escuro); border: 3px solid var(--verde-escuro); border-radius: 8px; padding: 0 8px; transform: rotate(-8deg); }
.bar { height: 14px; background: #cfe3ee; border: 2px solid var(--contorno); border-radius: 8px; overflow: hidden; }
.bar.big { height: 18px; }
.bar i { display: block; height: 100%; background: #6cc644; }
.bar.food i { background: linear-gradient(#ffe27a, #f5b800); }
.food-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 3px solid var(--contorno); border-radius: 16px; padding: 8px 12px; margin-bottom: 8px; box-shadow: 0 3px 0 rgba(42,26,18,.5); }
.cc-note { border-radius: 12px; padding: 4px 10px; font-weight: 800; margin: 6px 0; border: 2px solid var(--contorno); }
.cc-note.good { background: #e5ffd8; } .cc-note.bad { background: #ffe0e2; }
.big-btn { font-size: 19px; padding: 6px 18px; margin-bottom: 10px; }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rank { background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 8px 10px; }
.rank ol { margin: 4px 0; padding-left: 24px; }
.rank li { margin: 2px 0; display: list-item; }
.rank li .who { font-weight: 800; cursor: pointer; color: var(--azul-escuro); }
.rank li .rv { float: right; font-size: 13px; opacity: .8; }
.rank li.top0::marker { color: #d4a017; font-weight: 900; }
.bots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bot-card { background: #fff; border: 3px solid var(--contorno); border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; box-shadow: 0 3px 0 rgba(42,26,18,.5); }
.bot-card.locked { background: #e7eef2; }
.bot-card .row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bot-card .prod { display: flex; gap: 4px; align-items: center; font-weight: 800; }
.bot-card .bar { width: 100%; }
.lvl-pill { margin-left: 6px; font-size: 12px; background: var(--azulbtn); color: #fff; border-radius: 8px; padding: 0 6px; font-family: var(--font); font-weight: 800; }
.npc { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.speech { position: relative; background: #fff; border: 3px solid var(--contorno); border-radius: 16px; padding: 8px 12px; flex: 1; }
.speech::before { content: ''; position: absolute; left: -14px; bottom: 18px; border: 8px solid transparent; border-right: 10px solid var(--contorno); }
.medals { display: flex; flex-wrap: wrap; gap: 10px; }
.medal { display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.1; gap: 3px; }
.medal i { --m1: #f3c79a; --m2: #b5703a; --m3: #6e3d14; width: 48px; height: 48px; border-radius: 50%; position: relative; display: grid; place-items: center; font-style: normal;
  background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 62%, var(--m3)); border: 3px solid var(--contorno); box-shadow: 0 3px 0 var(--contorno), inset 0 0 0 4px rgba(255,255,255,.3); }
.medal i em { font-style: normal; font-size: 21px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.medal i b { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--contorno); color: #fff; font-family: var(--display); font-weight: 400; font-size: 11px; border-radius: 6px; padding: 0 5px; line-height: 15px; }
.medal.lvl2 i { --m1: #ffffff; --m2: #b9c3cc; --m3: #6b7783; }
.medal.lvl3 i { --m1: #fff2a8; --m2: #f2b705; --m3: #a07400; }
.medal.lvl4 i { --m1: #b9ffd9; --m2: #20b26b; --m3: #0b6b3c; }
.medal.lvl5 i { --m1: #ffffff; --m2: #8fdcff; --m3: #6a4cff; box-shadow: 0 3px 0 var(--contorno), 0 0 0 3px #fff, 0 0 14px 4px rgba(140,200,255,.9); animation: shine 1.6s ease-in-out infinite alternate; }
.medal.lvl4 i::before, .medal.lvl5 i::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px dashed rgba(255,215,64,.9); }
.medal.none { opacity: .45; filter: grayscale(1); }
.medal.huge { width: auto; margin: 4px auto 10px; }
.medal.huge i { width: 96px; height: 96px; border-width: 4px; }
.medal.huge i em { font-size: 44px; }
.medal.huge i b { font-size: 16px; line-height: 20px; bottom: -10px; padding: 0 8px; }
.mprog { width: 60px; height: 5px; border-radius: 3px; background: #cfe3ee; overflow: hidden; }
.mprog u { display: block; height: 100%; background: var(--verde); }
.lvl-name { font-family: var(--display); font-size: 18px; }
.lvl-name.lvl1 { color: #b5703a; } .lvl-name.lvl2 { color: #6b7783; } .lvl-name.lvl3 { color: #c99400; } .lvl-name.lvl4 { color: #15965a; } .lvl-name.lvl5 { color: #6a4cff; }
@keyframes shine { to { box-shadow: 0 3px 0 var(--contorno), 0 0 0 3px #fff, 0 0 22px 8px rgba(180,140,255,.95); } }
.trophy { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plaque { background: linear-gradient(#a86a35, #7a4b2a); border: 4px solid var(--contorno); border-radius: 16px; padding: 8px; box-shadow: 0 4px 0 var(--contorno); }
.rar-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.profile { display: flex; gap: 16px; align-items: center; }
.avatar-big { background: radial-gradient(circle at 50% 30%, #bdeaff, #6cc4f0); border: 3px solid var(--contorno); border-radius: 16px; }
.online { font-size: 14px; color: var(--verde-escuro); margin-left: 8px; font-family: var(--font); font-weight: 800; }
.bio { background: #fff; border-radius: 12px; padding: 6px 10px; border: 2px solid #b6dff3; }
label.f { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 13px; text-align: left; }
input.txt, select, textarea { font-family: var(--font); font-size: 15px; padding: 5px 10px; border-radius: 10px; border: 3px solid var(--contorno); background: #fff; color: var(--tinta); font-weight: 600; }
textarea { resize: none; width: 100%; }
.form { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.err { color: var(--vermelho-escuro); font-weight: 800; min-height: 20px; }
.creator { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.creator canvas { background: radial-gradient(circle at 50% 75%, #8ee07a, #4fae3d); border: 3px solid var(--contorno); border-radius: 18px; }
.opts { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 2px solid #b6dff3; border-radius: 12px; padding: 4px 8px; margin: 4px 0; }
.opt span { font-weight: 800; }
.opt.col { flex-direction: column; align-items: stretch; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatches .sw { width: 24px; height: 24px; padding: 0; border-radius: 7px; border: 2px solid var(--contorno); box-shadow: none; }
.swatches .sw.on { outline: 3px solid var(--sol); outline-offset: 1px; }
.optval { min-width: 110px; text-align: center; font-size: 14px; }
.small-tabs { justify-content: flex-start; margin: 0 0 4px; }
.small-tabs button { font-size: 12px; padding: 1px 8px; }
.opts { max-width: 330px; }
.opt .swatch { width: 24px; height: 24px; border-radius: 7px; border: 3px solid var(--contorno); }
.holder-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; }
.holder-row .muted { flex: 1; font-size: 12.5px; }
.setup { position: relative; background: #fff; border: 3px solid var(--contorno); border-radius: 16px; padding: 8px 10px 8px 14px; display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 6px 10px; margin-bottom: 10px; box-shadow: 0 3px 0 rgba(42,26,18,.5); }
.setup-n { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--vermelho); color: #fff; border: 3px solid var(--contorno); display: grid; place-items: center; font-family: var(--display); }
.setup-ico { grid-row: span 2; position: relative; background: #e7f6ff; border-radius: 12px; border: 2px solid #b6dff3; min-height: 90px; }
.setup-ico canvas { position: absolute; }
.setup-ico canvas:nth-child(1) { left: 4px; top: 4px; } .setup-ico canvas:nth-child(2) { right: 6px; top: 6px; }
.setup-ico canvas:nth-child(3) { left: 8px; bottom: 4px; } .setup-ico canvas:nth-child(4) { right: 8px; bottom: 4px; }
.setup select { font-size: 13px; padding: 2px 6px; width: 100%; }

#ctxmenu { position: fixed; z-index: 35; background: #fff; color: var(--tinta); border: 3px solid var(--contorno); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 4px 0 var(--contorno); min-width: 170px; }
#ctxmenu .who { font-family: var(--display); padding: 0 6px; }
#ctxmenu button { text-align: left; font-size: 14px; background: var(--azulbtn); box-shadow: inset 0 -3px 0 var(--azulbtn-escuro); }

/* ---------- cartão do peixe pescado ---------- */
#catch { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(10,40,70,.35); pointer-events: none; }
#catch .catch-card { pointer-events: auto; }
.catch-card { position: relative; width: 340px; background: #fff; color: var(--tinta); border: 4px solid var(--contorno); border-radius: 24px; padding: 14px 16px 16px; text-align: center;
  box-shadow: 0 0 0 6px var(--rar), 0 0 0 10px var(--contorno), 0 14px 0 8px var(--contorno), 0 30px 60px rgba(0,0,0,.4); animation: pop .45s ease-out; }
.catch-card .cc-close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 18px; background: var(--vermelho); box-shadow: inset 0 -4px 0 var(--vermelho-escuro), 0 3px 0 var(--contorno); z-index: 2; }
.catch-card .ribbon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--vermelho); color: #fff; font-family: var(--display); font-size: 20px; padding: 2px 18px; border: 3px solid var(--contorno); border-radius: 10px; text-shadow: 0 2px 0 rgba(0,0,0,.3); white-space: nowrap; }
.polaroid { background: #fff; padding: 8px 8px 22px; border: 2px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,.2); transform: rotate(-1.5deg); margin: 4px auto 8px; width: max-content; }
.polaroid canvas { display: block; border-radius: 4px; }
.cc-name { font-family: var(--display); font-size: 32px; line-height: 1; color: var(--tinta); }
.cc-sci { font-style: italic; opacity: .65; }
.cc-tags { margin: 6px 0; }
.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.cc-stats > div { background: #e7f6ff; border: 2px solid #b6dff3; border-radius: 12px; padding: 2px 0; display: flex; flex-direction: column; }
.cc-stats small { font-size: 11px; font-weight: 800; opacity: .6; text-transform: uppercase; }
.cc-stats b { font-family: var(--display); font-weight: 400; font-size: 16px; display: flex; gap: 3px; align-items: center; justify-content: center; }
.cc-stats b.xp { color: var(--verde-escuro); }
.cc-fact { font-size: 14px; line-height: 1.25; margin: 6px 2px; }
.cc-range { font-size: 12px; opacity: .65; margin-bottom: 10px; }

/* ---------- mapa grande ---------- */
#bigmap { position: fixed; inset: 0; z-index: 42; display: grid; place-items: center; background: rgba(10,40,70,.45); }
.bigmap-card { position: relative; background: #fff; border: 6px solid #fff; border-radius: 24px; box-shadow: 0 0 0 4px var(--contorno), 0 9px 0 4px var(--contorno); padding: 30px 12px 8px; text-align: center; color: var(--tinta); }
.bigmap-card .close { position: absolute; top: -18px; right: -18px; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--vermelho); box-shadow: inset 0 -4px 0 var(--vermelho-escuro), 0 3px 0 var(--contorno); }
#bigmap-canvas { display: block; border-radius: 14px; cursor: crosshair; }

/* ---------- tutorial ---------- */
#tutorial { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: rgba(10,40,70,.5); }
.tut-card { position: relative; width: min(400px, 92vw); background: linear-gradient(var(--agua-1), var(--agua-2)); color: var(--tinta); border: 6px solid #fff; border-radius: 26px; padding: 34px 20px 18px; text-align: center;
  box-shadow: 0 0 0 4px var(--contorno), 0 9px 0 4px var(--contorno), 0 30px 60px rgba(0,0,0,.4); animation: pop .3s ease-out; }
.tut-step { position: absolute; top: 8px; right: 14px; font-weight: 800; opacity: .6; }
.tut-art { border: 4px solid var(--contorno); border-radius: 16px; overflow: hidden; width: max-content; margin: 0 auto 10px; box-shadow: 0 4px 0 var(--contorno); }
.tut-art canvas { display: block; }
.tut-card p { font-size: 15.5px; line-height: 1.3; font-weight: 600; min-height: 84px; }
.tut-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.tut-dots i { width: 10px; height: 10px; border-radius: 50%; background: #8fbcd4; border: 2px solid var(--contorno); }
.tut-dots i.on { background: var(--sol); }
.tut-nav { display: flex; justify-content: space-between; }

/* ---------- carregamento ---------- */
#loading { position: fixed; inset: 0; z-index: 60; background: #5cc8f5; display: grid; place-items: center; text-align: center; transition: opacity .5s; overflow: hidden; }
#loading.fade { opacity: 0; pointer-events: none; }
#loading-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.load-center { position: relative; }
.logo { margin: 0 0 18px; font-family: var(--display); font-weight: 400; line-height: .9; color: #fff; -webkit-text-stroke: 10px var(--contorno); paint-order: stroke fill; text-shadow: 0 6px 0 var(--contorno); animation: logo 2.4s ease-in-out infinite; }
.logo span { display: block; font-size: 42px; color: var(--sol); }
.logo b { display: block; font-weight: 400; font-size: 104px; letter-spacing: 2px; }
@keyframes logo { 50% { transform: translateY(-6px) rotate(-1deg); } }
#loading .bob { width: 36px; height: 48px; margin: 0 auto 10px; border-radius: 50% 50% 46% 46%; background: linear-gradient(#ff3b30 50%, #fff 50%); border: 4px solid var(--contorno); animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(10px) rotate(6deg); } }
#loading-text { font-family: var(--display); font-size: 26px; color: #fff; -webkit-text-stroke: 5px var(--contorno); paint-order: stroke fill; text-shadow: 0 3px 0 var(--contorno); margin: 6px 0; }
.tip { font-weight: 800; color: #fff; background: rgba(29,58,79,.75); border-radius: 12px; padding: 4px 12px; max-width: 460px; margin: 6px auto; font-size: 15px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .detail { position: static; }
  .setup { grid-template-columns: 1fr 1fr; }
  .setup-ico { grid-row: auto; grid-column: 1 / -1; min-height: 60px; }
}
@media (max-width: 760px) {
  .slot { width: 120px; height: 76px; }
  .slot-txt .meta { display: none; }
  #chat { width: 240px; }
  #fightbox { bottom: 140px; right: 8px; width: 340px; }
  #fight-canvas { width: 340px; height: 91px; }
  .xpbar { width: 110px; }
  #hud-buttons .hbtn span { display: none; }
  #minimap-wrap { top: 64px; } #minimap { width: 140px; height: 105px; }
  #clock-room { display: none; }
  .logo b { font-size: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- missões ---------- */
.bi-star { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.2 6.6 7.3 1-5.3 5.1 1.3 7.2L12 18l-6.5 3.4 1.3-7.2L1.5 9.1l7.3-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.2 6.6 7.3 1-5.3 5.1 1.3 7.2L12 18l-6.5 3.4 1.3-7.2L1.5 9.1l7.3-1z'/%3E%3C/svg%3E"); }
.hbtn { position: relative; }
.notif { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--vermelho); border: 2px solid #fff; font-family: var(--display); font-weight: 400; font-size: 13px; line-height: 18px; animation: pulse .6s infinite alternate; }
.center { text-align: center; }
.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.mission { background: #fff; border: 3px solid var(--contorno); border-radius: 16px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 3px 0 rgba(42,26,18,.5); }
.mission.ready { background: #fff8d6; box-shadow: 0 0 0 3px var(--sol), 0 3px 0 rgba(42,26,18,.5); }
.mission.done { opacity: .65; }
.mission.bonus { margin-top: 10px; background: linear-gradient(#fff3c4, #ffe28a); }
.m-top { display: flex; gap: 8px; align-items: center; }
.m-top .t { font-family: var(--display); font-size: 16px; line-height: 1.1; }
.stars { font-size: 15px; letter-spacing: -1px; white-space: nowrap; }
.stars i { font-style: normal; color: #cfd8dc; }
.stars i.on { color: #f2b705; text-shadow: 0 1px 0 var(--contorno); }
.m-bottom { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rw { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.rw.big { justify-content: center; margin: 8px 0; flex: none; }
.rw.big .chip { font-size: 20px; padding: 3px 12px; }
.chip { display: inline-flex; align-items: center; gap: 3px; background: #e7f6ff; border: 2px solid #b6dff3; border-radius: 10px; padding: 0 7px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.chip.xp { background: #e5ffd8; border-color: #9fd88a; color: var(--verde-escuro); }
.chip.item { background: #fff3e0; border-color: #f2c48a; }
.chip canvas { margin: -2px -2px; }
.chest { width: 34px; height: 28px; border-radius: 6px 6px 4px 4px; background: linear-gradient(#c98b4c 45%, #8a5a34 45%); border: 3px solid var(--contorno); position: relative; flex: none; }
.chest::after { content: ''; position: absolute; left: 50%; top: 35%; width: 8px; height: 8px; margin-left: -4px; background: var(--sol); border: 2px solid var(--contorno); border-radius: 2px; }
.login-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.login-day { position: relative; background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.login-day.today { background: #fff8d6; box-shadow: 0 0 0 3px var(--sol); animation: pulse .7s infinite alternate; }
.login-day.got { background: #e5ffd8; }
.login-day.big { background: linear-gradient(#fff3c4, #ffd56b); }
.ld-n { font-family: var(--display); font-size: 15px; }
.ld-r { display: flex; gap: 3px; align-items: center; font-weight: 800; }
.ld-i { font-size: 11px; line-height: 1.1; opacity: .8; min-height: 24px; }
.ld-ok { position: absolute; top: -10px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--verde); color: #fff; border: 2px solid var(--contorno); font-weight: 900; line-height: 20px; }
#popup { position: fixed; inset: 0; z-index: 48; display: grid; place-items: center; background: rgba(10,40,70,.4); }
.pop-card { position: relative; width: min(360px, 90vw); background: #fff; color: var(--tinta); border: 4px solid var(--contorno); border-radius: 24px; padding: 26px 18px 16px; text-align: center; box-shadow: 0 0 0 6px var(--sol), 0 0 0 10px var(--contorno), 0 14px 0 8px var(--contorno); animation: pop .4s ease-out; }
.pop-card .ribbon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--vermelho); color: #fff; font-family: var(--display); font-size: 20px; padding: 2px 18px; border: 3px solid var(--contorno); border-radius: 10px; white-space: nowrap; }
.pop-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
@media (max-width: 760px) { .login-track { grid-template-columns: repeat(4, 1fr); } }

@media (max-width: 1500px) {
  #hud-buttons .hbtn span { display: none; }
  #hud-buttons .hbtn { padding: 5px 10px; }
}

.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.li.found { background: #fff8d6; margin-bottom: 10px; }
.cooler-bar { display: flex; gap: 10px; align-items: center; background: #fff; border: 3px solid var(--contorno); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; flex-wrap: wrap; }
#mission-pops { position: fixed; top: 250px; right: 14px; z-index: 46; display: flex; flex-direction: column; gap: 8px; }
.mission-pop { display: flex; gap: 10px; align-items: center; background: #fff; color: var(--tinta); border: 3px solid var(--contorno); border-radius: 16px; padding: 8px 14px 8px 8px; box-shadow: 0 0 0 3px var(--sol), 0 4px 0 3px var(--contorno); cursor: pointer; animation: slidein .35s ease-out; max-width: 300px; transition: opacity .6s, transform .6s; }
.mission-pop.out { opacity: 0; transform: translateX(30px); }
.mission-pop b { font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--verde-escuro); }
.mission-pop small { opacity: .7; font-weight: 700; }
.mp-star { font-style: normal; width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; background: radial-gradient(circle at 35% 30%, #fff2a8, #f2b705 60%, #a07400); border: 3px solid var(--contorno); }
@keyframes slidein { from { transform: translateX(60px); opacity: 0; } }

button.cash { background: linear-gradient(#a259ff, #7b2cbf); box-shadow: inset 0 -4px 0 #5a189a, 0 3px 0 var(--contorno); }

.d-pic.stage { background: radial-gradient(circle at 50% 80%, #fff3c4, #ffd6e8 60%, #e8d4ff); border-color: #e2b6ff; }
.d-price.prem { color: #7b2cbf; }
.optval.prem { color: #7b2cbf; }


/* contador vermelho dentro das abas (Diárias, Semanais, Presente) */
.tabs button { position: relative; }
.tabs button .tab-n { top: -10px; right: -8px; min-width: 20px; height: 20px; font-size: 12px; line-height: 16px; color: #fff; }
.toast.bump { animation: toastBump .35s; }
@keyframes toastBump { 40% { transform: scale(1.06); } }

/* emblemas raros (Lenda do Lago, Guardião do Lago, Caçador de Relíquias): anel arco-íris girando e brilho */
.medal.rare i { box-shadow: 0 3px 0 var(--contorno), 0 0 16px 5px rgba(255,120,220,.75); }
.medal.rare i::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; z-index: -1;
  background: conic-gradient(#ff4d6d, #ffbe0b, #3ddc97, #3a86ff, #b14aed, #ff4d6d); animation: spin 2.4s linear infinite; }
.medal.rare i { z-index: 0; isolation: isolate; }
.medal.rare span { background: linear-gradient(90deg, #d62f6b, #b14aed, #2f7de1); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.all-medals { justify-content: center; }
.medal-wrap { display: flex; flex-direction: column; align-items: center; width: 118px; gap: 2px; }
.medal-goal { font-size: 11px; color: #55606b; text-align: center; line-height: 1.15; }

#boosts { position: absolute; top: 298px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 6; pointer-events: none; }
#boosts .boost, #boosts .boost * { color: #22313f; text-shadow: none; -webkit-text-stroke: 0; }
#boosts .boost { background: #fff; border: 3px solid var(--contorno); border-radius: 12px; padding: 2px 10px; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 var(--contorno), 0 0 12px var(--rar); }
#boosts .boost b { color: var(--rar) !important; -webkit-text-stroke: 0; font-family: var(--display); font-weight: 400; }
#chat-log p.sys.gold, .chat-hist p.sys.gold { color: #b07800; font-weight: 800; }

/* relíquias */
.cc-relic { display: flex; gap: 10px; align-items: center; margin: 8px 0; padding: 6px 10px; border-radius: 12px; border: 3px solid var(--contorno);
  background: linear-gradient(100deg, #fff3b0, #ffd6f5, #c9f0ff); font-size: 13px; text-align: left; }
.relic-pop { background: linear-gradient(160deg, #fffbe6, #f3e8ff 60%, #e0f7ff); }
.relic-ico { display: grid; place-items: center; margin: 6px auto; width: 120px; height: 120px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, #fff 30%, #ffe680 60%, transparent 72%); animation: shine 1.4s ease-in-out infinite alternate; }
.relic-ico::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(255,210,63,.55), transparent 30%, rgba(177,74,237,.45), transparent 60%, rgba(58,134,255,.45), transparent 90%); animation: spin 4s linear infinite; z-index: -1; }
.relic-ico { isolation: isolate; }
.card.relic { --rar: #b14aed; }
.card.relic::after { content: '✦'; position: absolute; top: 2px; left: 6px; color: #b14aed; font-size: 14px; text-shadow: 0 0 6px #ffd23f; }

/* Pérolas */
.pearl { display: inline-block; width: 15px; height: 15px; border-radius: 50%; vertical-align: -2px; margin-right: 3px; border: 1.6px solid var(--contorno);
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #ffe9f5 30%, #e3c8ff 62%, #b18cd9 100%); box-shadow: inset -1px -2px 2px rgba(120,60,160,.35); }
.pearl-btn { margin-left: 10px; display: inline-flex; align-items: center; gap: 2px; background: #fff; color: var(--texto, #22313f); border: 2px solid var(--contorno); border-radius: 12px; padding: 0 4px 0 6px; height: 22px; font-size: 14px; cursor: pointer; box-shadow: 0 2px 0 var(--contorno); }
.pearl-btn b { font-family: var(--display); font-weight: 400; color: #6a3fa0; -webkit-text-stroke: 0; paint-order: normal; text-shadow: none; }
.pearl-btn i { font-style: normal; background: #8e44ad; color: #fff; border-radius: 6px; width: 16px; height: 16px; line-height: 15px; text-align: center; font-weight: 900; margin-left: 4px; }
.plabel { display: inline-flex; align-items: center; }
.pearl-have { text-align: center; font-size: 18px; margin: 6px 0 12px; }
.pearl-have b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #6a3fa0; }
.pearl-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pearl-pack { position: relative; background: #fff; border: 3px solid var(--contorno); border-radius: 16px; padding: 14px 10px 10px; text-align: center; box-shadow: 0 4px 0 var(--contorno); }
.pearl-pack.tagged { background: linear-gradient(180deg, #fff, #f6ecff); }
.pp-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #e63946; color: #fff; font-size: 12px; font-weight: 800; padding: 1px 10px; border-radius: 10px; border: 2px solid var(--contorno); white-space: nowrap; }
.pp-ico .pearl { width: 22px; height: 22px; margin: 0 -3px; }
.pp-n { font-family: var(--display); font-size: 28px; color: #6a3fa0; }
.pp-bonus { font-size: 12px; font-weight: 800; color: #2f8f2f; min-height: 16px; margin-bottom: 6px; }
.pearl-pack button { width: 100%; }
.d-price.prem .pearl { width: 20px; height: 20px; }

/* anúncio recompensado */
.ad-btn { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: #ffbe0b; border: 2px solid var(--contorno); border-radius: 10px; font-weight: 800; font-size: 12px; padding: 1px 8px; cursor: pointer; box-shadow: 0 2px 0 var(--contorno); color: #2a1a12; text-shadow: none; white-space: nowrap; padding: 3px 12px; font-size: 13px; animation: adGlow .8s infinite alternate; }
@keyframes adGlow { to { box-shadow: 0 2px 0 var(--contorno), 0 0 12px 3px rgba(255,190,11,.9); } }
#fake-ad { position: fixed; inset: 0; background: rgba(10,20,35,.82); z-index: 200; display: grid; place-items: center; }
.fa-card, .fa-card * { color: #22313f; text-shadow: none; -webkit-text-stroke: 0; }
.fa-card { background: #fff; border: 4px solid var(--contorno); border-radius: 20px; padding: 18px 22px; width: min(420px, 92vw); text-align: center; position: relative; }
.fa-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #e63946; color: #fff; font-weight: 900; font-size: 12px; padding: 2px 12px; border-radius: 10px; border: 2px solid var(--contorno); }
.fa-art { font-size: 64px; margin: 6px 0; }
.fa-t { font-family: var(--display); font-size: 20px; }
.fa-s { color: #55606b; font-size: 13px; margin: 6px 0 12px; }
.fa-bar { height: 12px; border: 2px solid var(--contorno); border-radius: 8px; overflow: hidden; background: #eef2f5; }
.fa-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6cc644, #ffbe0b); }
.fa-n { font-weight: 800; margin: 8px 0; }
.fa-x { padding: 6px 16px; } .fa-card .fa-x.ok { background: #6cc644; color: #fff; }
.fa-card .fa-tag { color: #fff; }
.fa-quit { margin-left: 8px; background: transparent; border: none; color: #8a96a3; text-decoration: underline; cursor: pointer; }
.rare-tag { font-size: 10px; font-weight: 900; color: #b14aed; letter-spacing: .3px; text-transform: uppercase; }
.gear-card.relic { background: linear-gradient(110deg, #fff, #fbf0ff 60%, #eaf7ff); border-color: #8e44ad; }
.relic-tag { font-size: 11px; font-weight: 900; color: #8e44ad; }

/* variante ultra-rara */
.ultra-tag { display: inline-block; padding: 1px 9px; border-radius: 9px; border: 2px solid var(--contorno); font-weight: 900; font-size: 12px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.4);
  background: linear-gradient(90deg, #ff4d6d, #ffbe0b, #3ddc97, #3a86ff, #b14aed); background-size: 200% 100%; animation: ultraSlide 2s linear infinite; }
@keyframes ultraSlide { to { background-position: 200% 0; } }
.catch-card.ultra { box-shadow: 0 0 0 4px #fff, 0 0 26px 8px rgba(255,120,220,.8); }

.npc-pic { display: grid; place-items: center; margin: 4px auto; width: 120px; height: 124px; border-radius: 16px; background: linear-gradient(180deg, #e9dcff, #fff); border: 3px solid var(--contorno); }
.pop-btns { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

/* Salão de Troféus */
#hall { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #2a1a12; }
.hall-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: linear-gradient(180deg, #6b4226, #4a2c18); border-bottom: 3px solid #2a1a12; }
.hall-title { font-family: var(--display); font-size: 24px; color: #ffe9b0; -webkit-text-stroke: 4px #2a1a12; paint-order: stroke fill; flex: 1; }
.hall-likes { font-weight: 900; color: #ffe9b0; font-size: 16px; }
.hall-cv { flex: 1; width: 100%; min-height: 0; display: block; cursor: pointer; }
.hall-dim { position: absolute; inset: 0; background: rgba(10,6,3,.6); display: grid; place-items: center; }
.hall-modal { position: relative; background: #fffaf0; border: 4px solid #2a1a12; border-radius: 18px; padding: 14px 16px; width: min(480px, 94vw); max-height: 90vh; overflow: auto; text-align: center; color: #22313f; }
.hall-modal, .hall-modal * { text-shadow: none; -webkit-text-stroke: 0; }
.hm-x { position: absolute; top: 6px; right: 8px; border: none; background: #e63946; color: #fff; border-radius: 50%; width: 30px; height: 30px; font-weight: 900; cursor: pointer; }
.hm-cv { width: 440px; max-width: 100%; height: auto; border-radius: 12px; border: 3px solid #2a1a12; display: block; margin: 0 auto 8px; }
.hm-name { font-family: var(--display); font-size: 24px; color: #22313f; }
.hm-tags { display: flex; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.hm-tags .rar { color: #fff; border: 2px solid #2a1a12; border-radius: 9px; padding: 0 9px; font-weight: 900; font-size: 12px; }
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.hm-grid div { background: #fff; border: 2px solid #d9cdb8; border-radius: 10px; padding: 4px; }
.hm-grid small { display: block; font-size: 10.5px; color: #7a6a55; font-weight: 800; text-transform: uppercase; }
.hm-grid b { font-size: 13px; }
.hm-own small { display: block; font-weight: 800; color: #7a6a55; margin-top: 6px; }
.hm-chips, .hm-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.hm-row { margin-top: 10px; }
.hm-fish { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.hm-f { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 3px solid var(--rar); border-radius: 12px; padding: 6px; cursor: pointer; font-size: 12px; }
.hm-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hm-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 2px solid #d9cdb8; border-radius: 12px; padding: 8px; font-size: 13px; }
.hm-sw { width: 60px; height: 40px; }

/* =====================================================================
   v8: tela inicial, celular (toque), PWA, sugestões/bugs
   ===================================================================== */
.bi-chat { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H9l-5 4v-4H3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H9l-5 4v-4H3z'/%3E%3C/svg%3E"); }
.bi-bug { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l2 2h4l2-2 1.4 1.4L16 6.8c1 .7 1.6 1.7 1.9 2.7H21v2h-3v2h3v2h-3.1A6 6 0 0 1 6.1 15H3v-2h3v-2H3V9h3.1c.3-1 .9-2 1.9-2.7L6.6 5.4zM11 10v8h2v-8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l2 2h4l2-2 1.4 1.4L16 6.8c1 .7 1.6 1.7 1.9 2.7H21v2h-3v2h3v2h-3.1A6 6 0 0 1 6.1 15H3v-2h3v-2H3V9h3.1c.3-1 .9-2 1.9-2.7L6.6 5.4zM11 10v8h2v-8z'/%3E%3C/svg%3E"); }
.bi-full { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v3H6v4H3zm11 0h7v7h-3V6h-4zM3 14h3v4h4v3H3zm15 0h3v7h-7v-3h4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v3H6v4H3zm11 0h7v7h-3V6h-4zM3 14h3v4h4v3H3zm15 0h3v7h-7v-3h4z'/%3E%3C/svg%3E"); }
button.yellow { background: var(--sol); color: #5a3a00; text-shadow: 0 1px 0 rgba(255,255,255,.5); box-shadow: inset 0 -4px 0 #d79a00, 0 3px 0 var(--contorno); }
button.big { font-size: 22px; padding: 9px 18px; border-radius: 16px; width: 100%; }
#modal.top { z-index: 90; }
.ios-steps { text-align: left; color: var(--tinta); font-weight: 600; line-height: 1.35; padding-left: 22px; }
.ios-steps li { margin: 6px 0; }
.touch-only { display: none !important; }
body.touch .touch-only { display: inline-flex !important; }
body.touch .desk-only { display: none !important; }

/* ---------- tela inicial ---------- */
#landing { position: fixed; inset: 0; z-index: 70; overflow: hidden; background: #4fc3f7; }
#landing-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.land-logo { animation: none; position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); margin: 0; text-align: center; z-index: 2; pointer-events: none; }
#land-npc-tag { position: absolute; transform: translate(-50%, -100%); background: rgba(29,58,79,.9); border: 2px solid #fff; border-radius: 10px; padding: 0 8px; font-weight: 800; font-size: 14px; white-space: nowrap; z-index: 2; }
#land-npc-tag i { font-style: normal; background: #ff8a00; color: #fff; border-radius: 6px; padding: 0 5px; margin-left: 4px; font-size: 11px; }
#land-bubble { position: absolute; z-index: 3; background: #fff; color: var(--tinta); border: 4px solid var(--contorno); border-radius: 22px; padding: 12px 18px; box-shadow: 0 6px 0 var(--contorno), 0 0 0 8px rgba(255,210,63,.55); font-family: var(--display); font-size: clamp(20px, 3.1vw, 32px); line-height: 1.12; min-height: 1em; animation: bubble-in .4s cubic-bezier(.2,1.6,.4,1) both; }
#land-bubble::after { content: ''; position: absolute; left: 26px; bottom: -22px; border: 12px solid transparent; border-top: 14px solid var(--contorno); }
#land-bubble::before { content: ''; position: absolute; left: 30px; bottom: -13px; border: 8px solid transparent; border-top: 10px solid #fff; z-index: 1; }
#land-bubble em { font-style: normal; color: #e07a00; }
#land-bubble.done { animation: bubble-in .4s cubic-bezier(.2,1.6,.4,1) both, bubble-pulse 1.8s ease-in-out .4s infinite; }
@keyframes bubble-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bubble-pulse { 0%, 100% { box-shadow: 0 6px 0 var(--contorno), 0 0 0 8px rgba(255,210,63,.55); } 50% { box-shadow: 0 6px 0 var(--contorno), 0 0 0 14px rgba(255,210,63,.25); } }
.land-card { position: absolute; z-index: 4; right: max(4vw, env(safe-area-inset-right)); top: 50%; transform: translateY(-46%); width: min(380px, 92vw); max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--papel); color: var(--tinta); border: 4px solid var(--contorno); border-radius: 22px; padding: 18px; box-shadow: 0 8px 0 var(--contorno); display: flex; flex-direction: column; gap: 10px; user-select: text; -webkit-user-select: text; }
.land-card.view-visual { width: min(560px, 94vw); }
.land-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--tinta); text-align: center; }
.land-or { display: flex; align-items: center; gap: 8px; color: #8a7a64; font-weight: 800; }
.land-or::before, .land-or::after { content: ''; flex: 1; height: 3px; border-radius: 3px; background: #e2d2b4; }
.land-note { margin: 0; font-size: 13px; color: #6b5a44; text-align: center; font-weight: 600; }
.land-install { align-self: center; }
.lf { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 14px; }
.lf input, .lf select { width: 100%; font-size: 16px; padding: 7px 10px; }
.land-2col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.land-2col.ns { grid-template-columns: 1fr; }
.land-card .err:empty { display: none; }
.land-sex { display: flex; gap: 4px; flex-wrap: wrap; }
.land-sex button { font-size: 13px; padding: 5px 8px; }
.land-sex button.off { background: #8fbcd4; box-shadow: inset 0 -4px 0 #5f8ea8, 0 3px 0 var(--contorno); }
.land-sex button.on { background: var(--verde); }
.land-row { display: flex; gap: 8px; margin-top: 2px; }
.land-row .grow { flex: 1; }
.land-steps { display: flex; justify-content: center; gap: 14px; font-size: 13px; color: #8a7a64; font-weight: 700; }
.land-steps b { color: var(--verde-escuro); }
.land-card .creator canvas { width: 140px !important; height: 166px !important; }
.land-busy { display: grid; place-items: center; gap: 10px; padding: 20px 0; font-family: var(--display); font-size: 22px; }
.land-busy .bob { width: 30px; height: 40px; border-radius: 50% 50% 46% 46%; background: linear-gradient(#ff3b30 50%, #fff 50%); border: 4px solid var(--contorno); animation: bob 1s ease-in-out infinite; }
@media (max-height: 480px) {
  .land-logo span { font-size: 22px; } .land-logo b { font-size: 50px; }
  .land-logo { left: 22%; top: 8px; }
  .land-card { padding: 12px; gap: 7px; top: 50%; transform: translateY(-50%); width: min(340px, 46vw); }
  .land-card.view-visual { width: min(520px, 62vw); }
  button.big { font-size: 18px; padding: 6px 14px; }
  .land-card h2 { font-size: 22px; }
  .land-card .creator { flex-wrap: nowrap; gap: 8px; align-items: flex-start; }
  .land-card .creator canvas { width: 104px !important; height: 123px !important; position: sticky; top: 0; }
  #landing.wide-card #land-bubble, #landing.wide-card #land-npc-tag { display: none; }
  #land-bubble { font-size: 20px; padding: 8px 12px; }
  .land-2col.ns { grid-template-columns: 1fr 1fr; }
  .land-2col { grid-template-columns: .75fr 2fr; gap: 8px; }
  .lf { font-size: 12px; } .lf input, .lf select { font-size: 15px; padding: 4px 8px; }
  .land-sex button { font-size: 12px; padding: 4px 6px; }
  .land-steps { display: none; }
  .land-card .land-note { font-size: 12px; }
}
@media (max-aspect-ratio: 10/11) {
  .land-logo span { font-size: 26px; } .land-logo b { font-size: 60px; }
  .land-card { left: 50%; right: auto; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100vw - 24px); max-height: 54dvh; }
  .land-card.view-visual, .land-card.view-criar, .land-card.view-entrar { max-height: 62dvh; }
  #land-bubble { font-size: 21px; }
  #land-bubble.down::after { left: 18px; } #land-bubble.down::before { left: 22px; }
}

/* ---------- vire o celular ---------- */
#rotate { position: fixed; inset: 0; z-index: 95; background: linear-gradient(#2bb0ee, #0b5fa8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
#rotate b { font-family: var(--display); font-weight: 400; font-size: 30px; -webkit-text-stroke: 5px var(--contorno); paint-order: stroke fill; }
#rotate span { font-weight: 700; font-size: 16px; }
.rot-phone { width: 56px; height: 96px; border: 5px solid #fff; border-radius: 12px; box-shadow: 0 0 0 3px var(--contorno); animation: rot 2.2s ease-in-out infinite; position: relative; }
.rot-phone::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 12px; height: 4px; margin-left: -6px; border-radius: 2px; background: #fff; }
@keyframes rot { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* ---------- controles de toque ---------- */
#touch { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
#touch > * { pointer-events: auto; }
#joy { position: fixed; left: calc(18px + env(safe-area-inset-left)); bottom: 18px; width: 124px; height: 124px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18) 0 52%, rgba(255,255,255,.32) 53% 100%); border: 3px solid rgba(255,255,255,.75); box-shadow: 0 0 0 3px rgba(42,26,18,.55); touch-action: none; }
#joy.on { background: radial-gradient(circle, rgba(255,255,255,.25) 0 52%, rgba(255,255,255,.42) 53% 100%); }
#joy-knob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #cfe8f5); border: 3px solid var(--contorno); box-shadow: 0 3px 0 var(--contorno); pointer-events: none; }
.tbtn { touch-action: none; -webkit-tap-highlight-color: transparent; }
#t-action { position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: 24px; width: 112px; height: 112px; border-radius: 50%; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 17px; line-height: 1; background: var(--azulbtn); box-shadow: inset 0 -6px 0 var(--azulbtn-escuro), 0 4px 0 var(--contorno); }
#t-action.reel { background: var(--verde); box-shadow: inset 0 -6px 0 var(--verde-escuro), 0 4px 0 var(--contorno); width: 128px; height: 128px; font-size: 19px; }
#t-action.reel.held, #t-action.down { transform: translateY(3px) scale(.96); filter: brightness(1.12); }
#t-action-txt { max-width: 96px; text-align: center; }
#t-action span[class^="ic-"] { width: 34px; height: 34px; display: block; background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ic-reel { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-3a6 6 0 1 1-6-6V3zm0 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm5-7 5 4-5 4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9h-3a6 6 0 1 1-6-6V3zm0 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm5-7 5 4-5 4z'/%3E%3C/svg%3E"); }
.ic-open { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2a2 2 0 0 1 2 2v7l1-.3V4a2 2 0 1 1 4 0v7.5l1 .2V7a2 2 0 1 1 4 0v8c0 4-3 7-7 7h-1.5c-2.5 0-4-1-5.5-3L3 13.5c-.7-1 .3-2.4 1.5-2 .6.2 1.1.6 1.5 1.1L7 14V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2a2 2 0 0 1 2 2v7l1-.3V4a2 2 0 1 1 4 0v7.5l1 .2V7a2 2 0 1 1 4 0v8c0 4-3 7-7 7h-1.5c-2.5 0-4-1-5.5-3L3 13.5c-.7-1 .3-2.4 1.5-2 .6.2 1.1.6 1.5 1.1L7 14V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ic-npc { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H9l-5 4v-4H3zm6 5v2h2V9zm4 0v2h2V9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H9l-5 4v-4H3zm6 5v2h2V9zm4 0v2h2V9z'/%3E%3C/svg%3E"); }
#fight-pad { position: fixed; right: calc(158px + env(safe-area-inset-right)); bottom: 22px; display: flex; gap: 10px; align-items: flex-end; }
.drag-col { display: flex; flex-direction: column; align-items: center; gap: 4px; background: rgba(29,58,79,.82); border: 2px solid #fff; border-radius: 14px; padding: 5px; font-weight: 800; font-size: 12px; }
.drag-col b { font-family: var(--display); font-weight: 400; font-size: 16px; }
.tbtn.small-t { width: 48px; height: 44px; padding: 0; font-size: 26px; line-height: 1; border-radius: 12px; }
#t-drink { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: var(--azulbtn); box-shadow: inset 0 -4px 0 var(--azulbtn-escuro), 0 3px 0 var(--contorno); }
#t-drink b { font-size: 13px; }
.ic-can { width: 18px; height: 26px; border-radius: 4px; background: linear-gradient(90deg, #1ca7ec, #48cae4 60%, #0077b6); border: 2px solid var(--contorno); position: relative; }
.ic-can::after { content: '⚡'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }

/* ---------- celular: interface encolhida (--uiz) e reorganizada ---------- */
body.phone #card-player, body.phone #clock, body.phone #hud-buttons, body.phone #minimap-wrap, body.phone #tacklebox, body.phone #fightbox,
body.phone #chat, body.phone #prompt, body.phone #boosts, body.phone #toasts, body.phone .panel, body.phone #catch .catch-card, body.phone #popup > *,
body.phone #tutorial > *, body.phone #mission-pops, body.phone .bigmap-card, body.phone #ctxmenu, body.phone #banner { zoom: var(--uiz, 1); }
body.phone #card-player { top: 8px; left: calc(8px + env(safe-area-inset-left)); }
body.phone #clock { top: 110px; left: calc(8px + env(safe-area-inset-left)); transform: none; }
body.phone #hud-buttons { top: 8px; right: calc(8px + env(safe-area-inset-right)); }
body.phone #hud-buttons .hbtn span { display: none; }
body.phone #minimap-wrap { top: 64px; right: calc(8px + env(safe-area-inset-right)); }
body.phone #minimap { width: 150px; height: 112px; }
body.phone .mm-zoom { display: none; }
body.phone #guest-banner { display: none !important; }
body.phone #tacklebox { bottom: 6px; }
body.phone #prompt { bottom: 190px; }
body.phone #fightbox { right: auto; left: calc(8px + env(safe-area-inset-left)); bottom: 8px; top: auto; transform: none; }
body.phone #chat { left: calc(160px + env(safe-area-inset-left)); bottom: auto; top: 70px; width: 420px; display: none; }
body.phone #chat.mobile-open { display: block; }
body.phone #chat.mobile-open .chat-row { display: flex; gap: 6px; }
body.phone #btn-chatlog { display: none; }
body.phone .panel { width: min(720px, calc(96vw / var(--uiz, 1))); max-height: calc(84dvh / var(--uiz, 1)); top: 53%; }
body.phone .panel.wide { width: min(940px, calc(97vw / var(--uiz, 1))); }
body.phone .panel.modal { width: min(480px, calc(92vw / var(--uiz, 1))); }
body.phone #toasts { top: 64px; }
body.phone #mission-pops { top: 190px; }
body.touch #tb-actions #btn-retrieve { font-size: 0; }
body.touch #tb-actions #btn-retrieve::after { content: 'Recolher'; font-size: 14px; }

/* ---------- sugestões e bugs ---------- */
.fb-kinds { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; flex-wrap: wrap; }
.fb-text { width: 100%; resize: vertical; min-height: 110px; user-select: text; -webkit-user-select: text; }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; color: var(--tinta); font-weight: 700; font-size: 14px; }
.fb-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.fb-check input { width: 20px; height: 20px; }
.fb-shot { display: block; max-width: 100%; max-height: 150px; margin: 8px auto 0; border: 3px solid var(--contorno); border-radius: 10px; box-shadow: 0 3px 0 var(--contorno); }
input, textarea { user-select: text; -webkit-user-select: text; }
html, body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }

/* ---------- Casa de Eventos ---------- */
.ev-soon { text-align: center; margin: 2px 0 6px; }
.ev-soon span { display: inline-block; font-family: var(--display); font-size: 26px; color: #2a1a12; background: repeating-linear-gradient(-45deg, #ffd23f 0 16px, #ffc400 16px 32px); border: 3px solid var(--contorno); border-radius: 10px; padding: 2px 22px; transform: rotate(-2deg); box-shadow: 0 3px 0 var(--contorno); }
.ev-intro { color: var(--tinta); font-weight: 600; text-align: center; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.ev-card { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 3px solid #d7c2f2; border-radius: 14px; padding: 8px 10px; color: var(--tinta); }
.ev-card b { font-family: var(--display); font-weight: 400; font-size: 18px; color: #4e2384; }
.ev-card p { margin: 2px 0 0; font-size: 14px; }
.ev-ic { font-size: 28px; line-height: 1; }
@media (max-width: 560px) { .ev-grid { grid-template-columns: 1fr; } }
body.phone #catch .catch-card { zoom: calc(var(--uiz, 1) * 0.84); }

/* idade (9+ 13+ 18+ 25+) e bonequinhos homem/mulher com vara */
.land-age { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.land-age button { min-width: 0; height: 46px; font-size: 16px; padding: 4px 2px; }
.land-sex { display: grid !important; grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px; }
.land-age button.off, .sex-ic.off { background: #8fbcd4; box-shadow: inset 0 -4px 0 #5f8ea8, 0 3px 0 var(--contorno); }
.land-age button.on, .sex-ic.on { background: var(--verde); box-shadow: inset 0 -4px 0 var(--verde-escuro), 0 3px 0 var(--contorno), 0 0 0 3px var(--sol); }
.sex-ic { width: 58px; height: 46px; padding: 2px 4px; display: inline-grid; place-items: center; color: #fff; }
.sex-ic svg { width: 40px; height: 40px; display: block; filter: drop-shadow(0 1.5px 0 rgba(0,0,0,.3)); }
.land-2col.as { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 24px; }
@media (max-aspect-ratio: 10/11) { .land-2col.as { grid-template-columns: 1fr; } }
@media (max-height: 480px) {
  .land-2col.as { grid-template-columns: 1.6fr 1fr; }
  .land-age button { height: 38px; font-size: 14px; }
  .sex-ic { width: 48px; height: 38px; } .sex-ic svg { width: 32px; height: 32px; }
}

/* ---------- cantinho: beta + servidor (fica sempre por cima do jogo, discreto) ---------- */
#corner-info { position: fixed; right: calc(10px + env(safe-area-inset-right)); bottom: 8px; z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; pointer-events: none; }
#corner-info > * { pointer-events: auto; }
#beta-tag { font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: 0; padding: 2px 9px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(29,58,79,.35); color: #fff; box-shadow: none; text-shadow: 0 1px 1px rgba(0,0,0,.4); opacity: .62; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: opacity .2s; }
#beta-tag:hover { opacity: 1; filter: none; }
#srv-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: #fff; padding: 1px 8px; border-radius: 9px;
  background: rgba(29,58,79,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); text-shadow: 0 1px 1px rgba(0,0,0,.4); opacity: .85; }
#srv-ping { font-weight: 700; opacity: .9; }
#srv-ping:not(:empty)::before { content: '· '; }
.srv-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
#srv-tag[data-q=on] .srv-dot { background: #5ec43a; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6), 0 0 6px #5ec43a; }
/* celular: o canto de baixo é do botão de ação, então vai para o meio, em cima, bem pequeno */
body.phone #corner-info { right: auto; left: calc(10px + env(safe-area-inset-left)); top: calc(156px * var(--uiz, 1) + 4px); bottom: auto; align-items: flex-start; gap: 3px; }
body.phone #beta-tag { font-size: 10px; padding: 1px 6px; }
body.phone #srv-tag { font-size: 10px; padding: 1px 6px; }
#land-foot { position: absolute; left: calc(10px + env(safe-area-inset-left)); bottom: 8px; z-index: 5; font-size: 12px; font-weight: 700; color: #fff; padding: 2px 10px; border-radius: 9px;
  background: rgba(29,58,79,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: .8; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
@media (max-aspect-ratio: 10/11) { #land-foot { top: 6px; bottom: auto; } }
.notice-box { max-width: min(560px, 90vw); background: rgba(255,246,232,.97); color: var(--tinta); border: 3px solid var(--contorno); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: 17px; line-height: 1.25; box-shadow: 0 5px 0 var(--contorno); text-shadow: none; }
body.phone #banner { zoom: var(--uiz, 1); }

/* peixe mordeu: o quadro da vara pisca e uma mãozinha mostra onde tocar */
.slot.biting { box-shadow: 0 0 0 3px #fff, 0 0 18px 6px rgba(255,80,60,.9); animation: biteGlow .45s infinite alternate; }
@keyframes biteGlow { to { box-shadow: 0 0 0 3px #ffcf3f, 0 0 26px 10px rgba(255,80,60,.95); } }
.strike-hint { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; background: var(--vermelho); color: #fff; border: 3px solid var(--contorno);
  border-radius: 12px; padding: 3px 10px; font-family: var(--display); font-size: 16px; box-shadow: 0 3px 0 var(--contorno); animation: hintBounce .5s ease-in-out infinite alternate; pointer-events: none; z-index: 3; }
.strike-hint::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--contorno); }
@keyframes hintBounce { to { transform: translate(-50%, -6px); } }
.slot { position: relative; }
#prompt.bite { background: var(--vermelho); color: #fff; border-color: var(--contorno); font-size: 18px; animation: pulse .35s infinite alternate; }
#t-action.strike { background: var(--vermelho); box-shadow: inset 0 -6px 0 var(--vermelho-escuro), 0 4px 0 var(--contorno), 0 0 0 6px rgba(255,255,255,.7); width: 128px; height: 128px; font-size: 22px; animation: pulse .35s infinite alternate; }
.ic-strike { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 2v9a5 5 0 0 1-10 0V8l-3 3 4-7 4 7-3-3v3a3 3 0 0 0 6 0V2zm0 0h4v3h-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 2v9a5 5 0 0 1-10 0V8l-3 3 4-7 4 7-3-3v3a3 3 0 0 0 6 0V2zm0 0h4v3h-4z'/%3E%3C/svg%3E"); }

/* setinha "tela cheia" (celular deitado com a barra do navegador aparecendo) */
#fs-hint { position: fixed; z-index: 12; transform: translateX(-80%); background: var(--sol); color: #5a3a00; font-family: var(--display); font-size: 14px; padding: 4px 10px; border: 3px solid var(--contorno);
  border-radius: 12px; box-shadow: 0 3px 0 var(--contorno); white-space: nowrap; animation: fsBounce .6s ease-in-out infinite alternate; cursor: pointer; }
#fs-hint::before { content: ''; position: absolute; bottom: 100%; left: 80%; margin-left: -9px; border: 9px solid transparent; border-bottom-color: var(--contorno); }
#fs-hint::after { content: ''; position: absolute; bottom: calc(100% - 4px); left: 80%; margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--sol); }
@keyframes fsBounce { to { transform: translate(-80%, 5px); } }

/* Carreto do Tião */
.porter-head { display: flex; gap: 12px; align-items: flex-start; }
.porter-pic { flex: none; width: 96px; height: 104px; background: #fff3dc; border: 3px solid #e09a2b; border-radius: 14px; }
.porter-say { margin: 0 0 6px; font-weight: 700; color: #7a4b12; }
.porter-list { margin: 0; padding-left: 18px; font-size: 14px; }
.porter-list li { margin: 2px 0; }
.porter-box { margin: 12px 0 8px; padding: 10px 12px; background: #fff; border: 3px solid #f0d7a8; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; color: var(--tinta); }
.porter-box.on { border-color: #8fd16a; background: #f2fbe9; }
.porter-box.lock { justify-content: center; font-weight: 700; }
.porter-toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.porter-foot { font-size: 13px; margin-top: 8px; }

/* ranking semanal */
.rank-week { background: #fff6d6; border: 3px solid #f0c94a; border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; color: var(--tinta); font-size: 14px; }
.rank-last { background: #eef7ff; border: 2px solid #b9dcf5; border-radius: 12px; padding: 5px 10px; margin-bottom: 8px; color: var(--tinta); font-size: 13px; }
.chip.pearl { background: #f3e9ff; color: #6a2fb0; }

.yard-intro { background:#fff6d6; border:3px solid #f0c94a; border-radius:12px; padding:8px 12px; color:var(--tinta); font-size:14px; margin:0 0 10px; }

/* promoções da Loja do Zé */
.promo-box { display:flex; gap:12px; align-items:center; background:#fff; border:3px solid #e0d2b4; border-radius:14px; padding:8px 12px; margin:0 0 10px; color:var(--tinta); font-size:14px; }
.promo-box.on { background:linear-gradient(90deg,#fff3c4,#ffe08a); border-color:#e63946; cursor:pointer; animation: promoPulse 1.6s ease-in-out infinite; }
.promo-box b { font-size:15px; }
.promo-ic { flex:none; width:40px; height:40px; border-radius:50%; background:#e63946; color:#fff; font-family:var(--display); font-size:24px; display:grid; place-items:center; border:3px solid var(--contorno); }
.promo-ic.off { background:#9aa3a8; }
@keyframes promoPulse { 50% { box-shadow: 0 0 0 4px rgba(230,57,70,.25); } }
.d-price.promo s, .promo-box s { color:#8a8a8a; margin-right:4px; }
.promo-pct { margin-left:8px; background:#e63946; color:#fff; border-radius:8px; padding:0 6px; font-size:14px; }
.promo-note { color:#c1121f; font-weight:800; }
.card.on-sale { box-shadow: 0 0 0 3px #e63946 inset; }
.card-sale { position:absolute; top:3px; left:3px; background:#e63946; color:#fff; font-weight:900; font-size:11px; border:2px solid var(--contorno); border-radius:8px; padding:0 5px; z-index:2; }

/* janela do viveiro: fica à esquerda para dar para ver os peixes comendo */
.panel.side { left: 14px; right: auto; transform: translateY(-50%); width: min(560px, 48vw); }
body.phone .panel.side { left: calc(8px + env(safe-area-inset-left)); width: min(560px, calc(52vw / var(--uiz, 1))); }
.panel.side .split { grid-template-columns: 1fr; }

/* ---------- celular: HUD limpo (botões extras guardados no ☰) ---------- */
.bi-more { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v3H3zm0 6h18v3H3zm0 6h18v3H3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v3H3zm0 6h18v3H3zm0 6h18v3H3z'/%3E%3C/svg%3E"); }
#btn-more { display: none; }
body.phone #btn-more { display: inline-flex; }
body.phone #btn-more.open { background: var(--sol); box-shadow: inset 0 -4px 0 #d99a00, 0 3px 0 var(--contorno); }
.notif.dot { min-width: 14px; width: 14px; height: 14px; padding: 0; top: -5px; right: -5px; }
#hud-more { position: fixed; z-index: 30; top: 62px; right: calc(8px + env(safe-area-inset-right)); zoom: var(--uiz, 1); display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  background: rgba(20, 40, 70, .55); padding: 10px; border-radius: 18px; border: 3px solid var(--contorno); backdrop-filter: blur(4px); animation: moreIn .16s ease-out; }
#hud-more.hidden { display: none; }
#hud-more .hbtn { justify-content: flex-start; min-width: 190px; font-size: 17px; padding: 8px 14px; }
#hud-more .hbtn span { display: inline !important; }
#hud-more .hbtn.icon { font-size: 17px; }
#hud-more .hbtn.icon::after { content: 'Configurações'; margin-left: 8px; font-family: var(--display); }
@keyframes moreIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
#rotate button { margin-top: 12px; font-size: 20px; padding: 10px 22px; }
#rotate small { opacity: .85; font-weight: 700; max-width: 320px; }
#fs-hint.ios { transform: translateX(-50%); max-width: 420px; text-align: center; }
#fs-hint.ios::before, #fs-hint.ios::after { display: none; }

/* ---------- celular: menos informação parada na tela ---------- */
#btn-help-more, #more-info { display: none; }
body.phone #btn-help-more { display: inline-flex; }
body.phone #more-info { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; border-top: 2px solid rgba(255,255,255,.25); }
#more-beta { font-family: var(--font); font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(29,58,79,.4); color: #fff; box-shadow: none; }
#more-srv { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #fff; }
#more-srv[data-q=on] .srv-dot { background: #5ec43a; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6), 0 0 6px #5ec43a; }
body.phone #corner-info { display: none !important; }          /* beta + servidor: ficam no rodapé do ☰ */
body.phone #clock-room, body.phone #btn-help { display: none; }   /* relógio só com a hora; "Como jogar" está no ☰ */
body.phone #clock { padding: 3px 12px; top: 112px; }
body.phone #pc-name { display: none; }                         /* o nome já aparece em cima do boneco */
body.phone #minimap { width: 118px; height: 88px; }
body.phone #minimap-wrap { opacity: .9; }
.help-q { width: 20px; height: 20px; border-radius: 50%; background: var(--sol); color: var(--contorno); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 15px; }
body.phone .xpbar { width: 128px; }

.promo-box.small { padding: 5px 10px; font-size: 13px; }
.promo-box.small .promo-ic { width: 28px; height: 28px; font-size: 17px; }

/* ---------- Instagram ---------- */
.ig-ic { display: inline-block; width: 18px; height: 18px; border-radius: 5px; position: relative; flex: none;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 0 0 1.5px #fff inset; }
.ig-ic::before { content: ''; position: absolute; inset: 4px; border: 2px solid #fff; border-radius: 50%; }
.ig-ic::after { content: ''; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; top: 2.5px; right: 2.5px; }
.ig-ic.big { width: 64px; height: 64px; border-radius: 18px; }
.ig-ic.big::before { inset: 15px; border-width: 5px; }
.ig-ic.big::after { width: 8px; height: 8px; top: 9px; right: 9px; }
.insta-btn { background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 3px 0 var(--contorno); }
.insta-btn.big { font-size: 19px; padding: 10px 20px; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
#hud-more .insta-btn { background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); }
.insta-pill { position: fixed; top: 128px; left: 14px; z-index: 10; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font); font-weight: 800; font-size: 13px; color: #fff;
  padding: 5px 12px 5px 8px; border-radius: 999px; background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); border: 2.5px solid var(--contorno); box-shadow: 0 3px 0 var(--contorno); cursor: pointer; }
.insta-pill b { font-weight: 900; }
.insta-pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.phone .insta-pill, #hud.hidden ~ .insta-pill { display: none; }
#hud.hidden .insta-pill { display: none; }
.insta-pop .ribbon.insta { background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); }
.insta-logo { margin: 8px 0 2px; }
.insta-pop p { margin: 6px 0; }
.insta-joke { font-size: 14px; font-style: italic; }
.link-btn { background: none; box-shadow: none; border: none; color: var(--tinta); text-decoration: underline; font-size: 14px; margin-top: 6px; opacity: .75; }

/* ---------- v8.15: celular com 3 varas = cartões compactos (não ficam embaixo do painel da briga nem do energético) ---------- */
body.phone.rods3 #slots { gap: 8px; padding: 6px; }
body.phone.rods3 .slot { width: 92px; height: 82px; padding: 3px; justify-content: center; }
body.phone.rods3 .slot-txt { display: none; }
body.phone.rods3 .slot-ico { width: 52px; height: 46px; margin: 0 auto; }
body.phone.rods3 .slot .st { left: 4px; right: 4px; bottom: 4px; font-size: 12.5px; }
body.phone.rods3 .slot .tension { left: 6px; right: 6px; bottom: 28px; }
body.phone.rods3 .slot .strike-hint { font-size: 12px; white-space: nowrap; }

/* ---------- v8.15: anúncio de peixe raro/épico/lendário ---------- */
#catch-feed { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: max-content; max-width: 92vw; }
.cf-item { display: flex; align-items: center; gap: 8px; background: rgba(16,30,42,.9); border: 3px solid var(--rc); border-radius: 14px; padding: 5px 14px; color: var(--rc); font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 16px color-mix(in srgb, var(--rc) 45%, transparent); animation: cfIn .35s ease-out; transition: opacity .5s, transform .5s; text-shadow: 0 1px 0 #000; }
/* nome do peixe: branco brilhante com um contorno na cor da raridade (destaca sem brigar com o resto) */
.cf-item .cf-fish { color: #ffffff; font-weight: 900; text-shadow: 0 0 6px var(--rc), 0 1px 0 #000; }
#chat-log p.catch-line .cf-fish { color: #111; font-weight: 900; }
.cf-item i { font-style: normal; font-size: 17px; }
.cf-item.r-lendario { font-size: 17px; padding: 7px 18px; animation: cfIn .35s ease-out, cfGlow 1.2s ease-in-out infinite alternate; }
.cf-item.out { opacity: 0; transform: translateY(-8px); }
@keyframes cfIn { from { opacity: 0; transform: translateY(-12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes cfGlow { from { box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 8px var(--rc); } to { box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 26px var(--rc); } }
#chat-log p.catch-line { color: color-mix(in srgb, var(--rc) 70%, #000); font-weight: 800; }
body.phone #catch-feed { zoom: var(--uiz, 1); top: 60px; }
#ctxmenu button.is-friend { opacity: .7; cursor: default; }

/* ---------- v8.15: arrastar a tela / minimapa ---------- */
canvas.panning { cursor: grabbing !important; }
#minimap { cursor: crosshair; }
#mm-big { position: absolute; left: 6px; bottom: 6px; width: 28px; height: 28px; padding: 0; font-size: 17px; line-height: 1; border-radius: 8px; background: rgba(29,58,79,.85); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 0 var(--contorno); }
#cam-back { position: fixed; right: 14px; top: 262px; z-index: 6; white-space: nowrap; font-size: 14px; padding: 4px 12px; background: var(--azulbtn); color: #fff; border: 3px solid var(--contorno); border-radius: 12px; box-shadow: inset 0 -3px 0 var(--azulbtn-escuro), 0 3px 0 var(--contorno); }
body.phone #mm-big { width: 24px; height: 24px; font-size: 14px; left: 4px; bottom: 4px; border-radius: 6px; }
body.phone #cam-back { zoom: var(--uiz, 1); top: calc(190px / var(--uiz, 1)); right: calc(8px / var(--uiz, 1)); }

/* ---------- v8.16: amigos com busca separada ---------- */
.fr-head { font-family: var(--display); font-size: 17px; color: var(--tinta); margin: 2px 0 6px; }
.fr-head.mine { margin-top: 14px; padding-top: 10px; border-top: 2px dashed rgba(42,26,18,.2); }
.fr-filter { display: flex; gap: 6px; margin-bottom: 8px; }
.fr-filter .small-filter { flex: 1; height: 34px; font-size: 14px; padding: 4px 10px; max-width: 320px; }
.fr-none { padding: 8px 4px; }

/* ---------- v8.18: Casa de Eventos ---------- */
.ev-sec { font-family: var(--display); font-weight: 400; color: #4e2384; margin: 12px 0 6px; font-size: 19px; }
.ev-card2 { background: #fff; border: 3px solid #d7c2f2; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; color: var(--tinta); }
.ev-card2.live { border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255,210,63,.35); }
.ev-head { display: flex; align-items: center; gap: 10px; }
.ev-head b { font-family: var(--display); font-weight: 400; font-size: 19px; color: #4e2384; }
.ev-head .ev-ic { font-size: 28px; }
.ev-live { background: #e63946; color: #fff; font-weight: 900; font-size: 12px; padding: 3px 8px; border-radius: 8px; border: 2px solid var(--contorno); animation: pulse .6s infinite alternate; }
.ev-desc { margin: 6px 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ev-tag { display: inline-flex; align-items: center; gap: 4px; background: #f3ecff; border: 2px solid #d7c2f2; border-radius: 10px; padding: 2px 8px; font-weight: 700; font-size: 13px; }
.ev-prizes { display: grid; gap: 4px; margin: 6px 0; }
.ev-prize { background: #fffbea; border: 2px solid #f1d98a; border-radius: 10px; padding: 3px 8px; font-size: 14px; }
.ev-prize.p1 { background: #fff3c4; border-color: #ffd23f; }
.ev-rank { margin-top: 8px; border-top: 2px dashed #e6dcf5; padding-top: 6px; }
.ev-rank-t { font-weight: 800; margin-bottom: 4px; }
.ev-row { display: flex; gap: 8px; align-items: center; padding: 2px 6px; border-radius: 8px; font-size: 14px; }
.ev-row:nth-child(2) .pos { color: #c99700; } .ev-row .pos { width: 30px; font-weight: 900; }
.ev-row.me { background: #fff3c4; }
.ev-mini { background: #f3ecff; border: 2px solid #d7c2f2; border-radius: 12px; padding: 8px 10px; margin: 8px 0; text-align: left; }

/* ---------- v8.18: convite ---------- */
#invite-box { position: fixed; top: 168px; left: 14px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: auto; }
#invite-box .inv-t { font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 1px 0 var(--contorno), 0 0 4px rgba(0,0,0,.4); }
#invite-copy { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 16px 5px; background: var(--azulbtn); color: #fff; border: 3px solid var(--contorno); border-radius: 12px; box-shadow: inset 0 -4px 0 var(--azulbtn-escuro), 0 3px 0 var(--contorno); cursor: pointer; }
#invite-copy b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 2px; line-height: 1.1; }
#invite-copy small { font-size: 11px; font-weight: 800; opacity: .9; }
#invite-copy:active { transform: translateY(2px); }
body.phone #invite-box { display: none !important; }
.inv-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #5ec43a; color: #fff; font-size: 18px; border: 2px solid var(--contorno); }

/* ---------- v8.19: Guia de Pesca do Professor ---------- */
.panel.guia { width: min(1000px, 96vw); height: 86vh; max-height: 86vh; }
.panel.guia #panel-body { flex: 1; overflow-y: scroll; padding: 2px 10px 10px 4px; }
@supports (-moz-appearance: none) { .panel.guia #panel-body { scrollbar-color: var(--azul-escuro) rgba(255,255,255,.55); } }
.panel.guia #panel-body::-webkit-scrollbar { width: 16px; }
.panel.guia #panel-body::-webkit-scrollbar-track { background: rgba(255,255,255,.55); border-radius: 10px; border: 2px solid rgba(42,26,18,.25); }
.panel.guia #panel-body::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--azulbtn), var(--azul-escuro)); border-radius: 10px; border: 3px solid var(--contorno); }
.guide { display: grid; grid-template-columns: 196px 1fr; gap: 16px; align-items: start; color: var(--tinta); user-select: text; -webkit-user-select: text; }
.g-nav { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 10px 8px; background: var(--papel); border: 3px solid var(--contorno); border-radius: 16px; box-shadow: 0 4px 0 var(--contorno); }
.g-nav-t { font-family: var(--display); font-size: 17px; color: var(--azul-escuro); padding: 0 6px 4px; }
.g-link { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; padding: 4px 6px; font-size: 14px; line-height: 1.15; color: var(--tinta); text-shadow: none;
  background: transparent; border: 2px solid transparent; border-radius: 10px; box-shadow: none; }
.g-link:hover { background: rgba(45,154,214,.12); filter: none; }
.g-link b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--azul); border: 2px solid var(--contorno); border-radius: 50%; }
.g-link.on { background: var(--sol); border-color: var(--contorno); }
.g-link.on b { background: var(--vermelho); }
.g-hero { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.g-prof { width: 80px; height: 100px; flex: none; }
.g-bubble { position: relative; flex: 1; padding: 10px 14px; background: #fff; border: 3px solid var(--contorno); border-radius: 16px; box-shadow: 0 4px 0 var(--contorno); font-size: 15px; }
.g-bubble b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--azul-escuro); }
.g-bubble p { margin: 2px 0 0; }
.g-bubble::before { content: ''; position: absolute; left: -15px; bottom: 16px; border: 9px solid transparent; border-right: 14px solid var(--contorno); border-left: 0; }
.g-bubble::after { content: ''; position: absolute; left: -9px; bottom: 19px; border: 6px solid transparent; border-right: 10px solid #fff; border-left: 0; }
.g-sec { margin: 0 0 16px; padding: 12px 14px; background: var(--papel); border: 3px solid var(--contorno); border-radius: 18px; box-shadow: 0 5px 0 var(--contorno); scroll-margin-top: 8px; }
.g-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.g-num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--display); font-size: 17px; color: #fff; background: var(--azul); border: 3px solid var(--contorno); border-radius: 50%; }
.g-head h3 { margin: 0; font-size: 23px; color: var(--tinta); }
.g-row { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.g-row.no-art { grid-template-columns: 1fr; }
.g-art { display: block; width: 300px; height: 160px; background: #123042; border: 3px solid var(--contorno); border-radius: 14px; }
.g-points { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.38; }
.g-points li { margin: 0 0 7px; }
.g-points li::marker { color: var(--azul); }
.g-points b { color: var(--azul-escuro); }
.g-tip { margin-top: 10px; padding: 8px 12px; font-size: 14.5px; background: #fff3c4; border: 2px dashed #c99700; border-radius: 12px; }
.g-tip b { color: #8a5a00; }
.g-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.g-cell { padding: 8px 6px; text-align: center; background: #fff; border: 2px solid var(--contorno); border-top: 7px solid var(--zc, var(--azul)); border-radius: 12px; }
.g-cell-ico { display: flex; justify-content: center; }
.g-cell-ico canvas { width: 44px; height: 44px; }
.g-cell-t { font-family: var(--display); font-size: 16px; color: var(--tinta); }
.g-cell-t.zone { display: inline-block; margin: 2px 0 1px; padding: 0 10px; font-size: 15px; color: #fff; background: var(--zc); border: 2px solid var(--contorno); border-radius: 10px; -webkit-text-stroke: 3px var(--contorno); paint-order: stroke fill; }
.g-cell-d { font-size: 13px; opacity: .8; line-height: 1.2; margin-top: 1px; }
.g-fish { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; margin-top: 4px; }
.g-fish.big { min-height: 36px; align-items: center; }
.g-end { margin: 4px 0 8px; text-align: center; font-family: var(--display); font-size: 20px; color: var(--azul-escuro); }
@media (max-width: 820px) {
  .guide { grid-template-columns: 1fr; gap: 10px; }
  .g-nav { flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
  .g-nav::-webkit-scrollbar { display: none; }
  .g-nav-t { display: none; }
  .g-link { width: auto; flex: none; white-space: nowrap; font-size: 13px; }
  .g-row { grid-template-columns: 1fr; }
  .g-art { width: 100%; max-width: 420px; height: auto; aspect-ratio: 300 / 160; margin: 0 auto; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .g-hero { align-items: center; }
  .g-prof { width: 64px; height: 80px; }
}
body.phone .panel.guia { height: calc(92vh / var(--uiz, 1)); max-height: calc(92vh / var(--uiz, 1)); }
body.phone .guide { grid-template-columns: 1fr; gap: 10px; }
body.phone .g-nav { flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
body.phone .g-nav::-webkit-scrollbar { display: none; }
body.phone .g-nav-t { display: none; }
body.phone .g-link { width: auto; flex: none; white-space: nowrap; font-size: 13px; }
body.phone .g-row { grid-template-columns: 260px 1fr; }
body.phone .g-art { width: 260px; height: auto; aspect-ratio: 300 / 160; }
body.phone .g-hero { align-items: center; }
body.phone .g-prof { width: 64px; height: 80px; }
body.phone .g-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
