/* Treasure Cove: sunny pirate colours for the shared island HUD and dialog, plus what is special here: the camera
   compass (top left; the dial turns, the letters stay upright), the Captain's paper map card and the reward hat. */
#treasure-hud{--isle-main:#1d2a4a;--isle-accent:#ffcc33;--isle-ink:#2b1a0e;--isle-soft:#fff3d6;--isle-good:#7cf07c;--isle-bad:#ff6a5a}
.tc-panel{--isle-main:#1d2a4a;--isle-accent:#ffcc33;--isle-ink:#2b1a0e;--isle-soft:#fff3d6}

/* Camera compass */
#treasure-hud .tc-compass{position:absolute;left:14px;top:150px;width:100px;pointer-events:none}
#treasure-hud .tc-compass::before{content:'';position:absolute;left:43px;top:-12px;border:7px solid transparent;border-bottom:11px solid var(--isle-accent);filter:drop-shadow(0 2px 0 rgba(0,0,0,.35))}
#treasure-hud .tc-dial{--tc-rot:0deg;position:relative;width:100px;height:100px;border-radius:50%;background:radial-gradient(circle,#fff8e8 0 58%,#f3dfb0 59%);border:4px solid var(--isle-accent);box-shadow:0 4px 0 rgba(0,0,0,.3),inset 0 0 0 3px #b8894a;box-sizing:border-box}
#treasure-hud .tc-dial i{position:absolute;width:26px;height:26px;display:grid;place-items:center;font:900 19px/1 Fredoka,Nunito,"Segoe UI",sans-serif;font-style:normal;color:#1d2a4a;transform:rotate(calc(-1 * var(--tc-rot)))}
#treasure-hud .tc-dial .tc-n{top:1px;left:33px;color:#e8473b}
#treasure-hud .tc-dial .tc-s{bottom:1px;left:33px}
#treasure-hud .tc-dial .tc-e{right:1px;top:33px}
#treasure-hud .tc-dial .tc-w{left:1px;top:33px}
#treasure-hud .tc-needle{position:absolute;left:41px;top:24px;width:10px;height:44px;background:linear-gradient(#e8473b 0 50%,#1d2a4a 50% 100%);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
#treasure-hud .tc-face{margin-top:5px;text-align:center;font:800 15px/1.2 Fredoka,Nunito,"Segoe UI",sans-serif;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.55)}
#treasure-hud .ih-chip.tc-steps{background:#2e7d4f;border-color:#bff5c9}
#treasure-hud .ih-chip.tc-title{border-color:var(--isle-accent);color:var(--isle-accent)}

/* The Captain's paper map */
#treasure-hud .tc-map{position:absolute;left:14px;top:300px;pointer-events:none}
#treasure-hud .tc-map[hidden],#treasure-hud.asking .tc-map{display:none}
#treasure-hud .tc-map-card{pointer-events:auto;width:min(360px,44vw);box-sizing:border-box;background:#f8e7bf;color:var(--isle-ink);border:4px solid #b8894a;border-radius:18px;padding:8px 10px 10px;box-shadow:0 6px 0 rgba(0,0,0,.25)}
#treasure-hud .tc-map-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}
#treasure-hud .tc-map-close{flex:none;width:48px;height:48px;border-radius:14px;border:0;background:var(--isle-main);color:#fff;font-size:18px}
#treasure-hud .tc-map-canvas{display:block;width:100%;height:auto;border-radius:10px;margin:6px 0}
#treasure-hud .tc-clues{margin:0;padding:0;list-style:none;display:grid;gap:6px;max-height:28vh;overflow:auto}
#treasure-hud .tc-clues li{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:600;line-height:1.3}
#treasure-hud .tc-clue-hear{flex:none;width:48px;height:48px;border-radius:50%;border:2px solid var(--isle-main);background:#fff;font-size:18px}

/* Dialog */
.tc-panel .tc-talk{display:flex;gap:12px;align-items:center}
.tc-panel .tc-avatar{flex:none;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--isle-main);color:var(--isle-accent);font-size:30px;box-shadow:0 0 0 3px var(--isle-accent)}
.tc-panel .tc-reward{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.tc-panel .tc-reward p{margin:0;flex:1 1 160px}
.tc-panel .tc-hat-icon{flex:none;width:72px;height:40px;background:#1b1b1b;clip-path:polygon(0 100%,14% 30%,50% 0,86% 30%,100% 100%,50% 82%);box-shadow:inset 0 -6px 0 #ffcc33}
.tc-panel .tc-facts li{font-size:15px}

@media (max-width:700px){
 #treasure-hud .tc-compass{left:8px;top:126px;transform:scale(.74);transform-origin:top left}
 #treasure-hud .tc-map{left:50%;top:auto;bottom:112px;transform:translateX(-50%)}
 #treasure-hud .tc-map-card{width:min(380px,94vw)}
 #treasure-hud .tc-map-canvas{max-height:26vh;object-fit:contain}
 #treasure-hud .tc-clues{max-height:20vh}
}
.touch-play #treasure-hud .tc-map{bottom:170px}
/* Island hunts (treasure-hunts.js): hunt cards, the curio cabinet, shovel finishes, the result card and the room box. */
.tc-panel .tc-hunt span{display:inline-block;margin:2px 0}
.tc-panel .tc-play{margin-top:6px;border:0;border-radius:12px;background:#1d2a4a;color:#ffcc33;font:inherit;font-weight:800;padding:8px 18px;min-height:48px;cursor:pointer}
.tc-panel .tc-h{margin:10px 0 4px;font-size:16px;color:#1d2a4a}
.tc-panel .tc-cabinet{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.tc-panel .tc-cabinet li{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:14px;background:#fff3d6;border:2px solid #e9cf92}
.tc-panel .tc-cabinet li>b{font-size:28px;line-height:1}
.tc-panel .tc-cabinet li.locked{opacity:.6;background:#f4ecd8;border-style:dashed}
.tc-panel .tc-curio{display:flex;gap:12px;align-items:center}
.tc-panel .tc-curio>b{font-size:40px}
.tc-panel .tc-shovels .ip-pick small{font-weight:800;opacity:.85}
.tc-panel .tc-shovels .ip-pick:disabled{opacity:.55;cursor:not-allowed}
.tc-panel .tc-room{margin-top:10px;padding-top:8px;border-top:2px dashed #e9cf92}
.tc-panel .tc-new{font-weight:800;color:#2f8a3a}
#treasure-hud .ih-chip.tc-hunt-chip{background:#fff3d6;color:#2b1a0e;border-color:#ffcc33}
@media (max-width:420px){.tc-panel .tc-cabinet{grid-template-columns:1fr}}
