/* boss loot: run-only gear tag */
.sc-lootcard { position: relative; }
.sc-runonly { position: absolute; top: 6px; left: 6px; z-index: 4; padding: 2px 8px; border-radius: 6px; font: 700 12px var(--font);
  color: #fff4d8; background: linear-gradient(#b8321f, #7a160d); border: 1px solid var(--gold, #f4c55a); text-shadow: 0 1px 0 #2a0805; pointer-events: none; }
.sc-lootnote { font-size: 14px; color: #ffe2a0; text-align: center; margin: -2px 12px 8px; opacity: .92; }

/* hand-held tutorial overlay */
.tut-root { position: fixed; inset: 0; z-index: 40; pointer-events: none; font-family: var(--font); }
.tut-dim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tut-block { position: absolute; pointer-events: auto; background: transparent; }
.tut-hole { position: absolute; border-radius: 14px; border: 3px solid var(--gold, #f4c55a); box-sizing: border-box; pointer-events: none;
  box-shadow: 0 0 18px 4px rgba(255, 200, 80, .7); animation: tutPulse 1.1s ease-in-out infinite; }
@keyframes tutPulse { 50% { border-color: #fff2b8; box-shadow: 0 0 30px 10px rgba(255, 200, 80, .95); } }
.tut-finger { position: absolute; left: 0; top: 0; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55)); z-index: 3; }
.tut-bubble { position: absolute; min-width: 200px; max-width: 340px; padding: 12px 18px; text-align: center; pointer-events: none; z-index: 4; background-color: rgba(104, 44, 38, .95); border-radius: 14px; }
.tut-bubble.shake { animation: tutShake .35s; }
@keyframes tutShake { 20% { translate: -8px 0; } 40% { translate: 8px 0; } 60% { translate: -5px 0; } 80% { translate: 4px 0; } }
.tut-arrow { position: absolute; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; filter: drop-shadow(0 2px 0 #2a0805); }
.tut-bubble[data-dir="down"] .tut-arrow { bottom: -22px; border-top: 22px solid var(--gold, #f4c55a); }
.tut-bubble[data-dir="up"] .tut-arrow { top: -22px; border-bottom: 22px solid var(--gold, #f4c55a); }
.tut-btxt { font-size: 20px; font-weight: 900; color: #fff4d8; line-height: 1.3; overflow-wrap: anywhere; }
.tut-wtag { font-size: 12px; font-weight: 700; color: var(--gold, #f4c55a); letter-spacing: 1px; margin-bottom: 2px; }
.tut-keyline { margin-top: 6px; }
.tut-keycap { display: inline-block; min-width: 44px; padding: 3px 12px; border-radius: 8px; font: 900 15px var(--font); color: #2a0805; background: linear-gradient(#fff0b0, #f4c55a); border: 2px solid #7a160d; box-shadow: 0 3px 0 #7a160d; }
.tut-cont { pointer-events: auto; margin-top: 8px; min-width: 120px; min-height: 46px; font-size: 18px; }
.tut-skip { position: fixed; left: 12px; top: 76px; z-index: 41; min-height: 44px; padding: 0 16px; font-size: 15px; pointer-events: auto; }
.tut-enc { position: fixed; left: 50%; top: 40%; z-index: 60; transform: translate(-50%, -50%); pointer-events: none; font: 900 44px var(--font); color: #ffe08a;
  -webkit-text-stroke: 6px #5a1208; paint-order: stroke fill; text-shadow: 0 5px 0 #2a0805; white-space: nowrap; animation: tutEnc .9s ease-out both; }
@keyframes tutEnc { 0% { opacity: 0; scale: .4; } 20% { opacity: 1; scale: 1.2; } 35% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: 0 -30px; } }
.tut-tiproot { position: fixed; inset: 0; z-index: 40; background: rgba(10, 2, 0, .45); pointer-events: auto; font-family: var(--font); }
.tut-tips { animation: tutIn .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tutIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.tut-tips { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 86%); padding: 26px 34px 22px; text-align: center; background-color: rgba(104, 44, 38, .95); border-radius: 18px; }
.tut-ttitle { font-size: 26px; font-weight: 900; color: var(--gold-hi, #ffe08a); margin-bottom: 10px; }
.tut-tbody { font-size: 18px; color: #fff4d8; line-height: 1.5; min-height: 3em; text-shadow: 0 1px 0 #2a0805; }
.tut-dots { color: var(--gold, #f4c55a); letter-spacing: 4px; margin: 10px 0; font-size: 14px; }
.tut-next { min-width: 160px; min-height: 48px; font-size: 18px; }
/* the welcome gift window */
.tut-gift .sc-panel { width: min(440px, 88vw); padding: 24px 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; overflow: visible; }
.tut-gframe { width: 108px; height: 108px; border-radius: 16px; display: grid; place-items: center; margin: 4px auto;
  background: radial-gradient(circle, color-mix(in srgb, var(--qc) 45%, transparent), rgba(20, 6, 2, .6) 72%);
  border: 3px solid var(--qc); box-shadow: 0 0 22px var(--qc); animation: tutGiftIn .6s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes tutGiftIn { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.tut-gimg { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.tut-gname { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.tut-gq { font-size: 12px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--qc); color: var(--qc); background: rgba(0, 0, 0, .35); }
.tut-gdesc { font-size: 15px; color: #ffe2a0; }
.tut-gstat { font-size: 22px; font-weight: 900; color: #8fd3ff; }
.tut-gift .tut-next { margin-top: 10px; }
/* the tutorial's results screen (request 26) */
.tut-result .sc-panel { width: min(600px, 90vw); max-height: 92vh; padding: 20px 26px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tut-result .tut-tbody { min-height: 0; font-size: 15px; }
.tut-rbody { width: 100%; max-height: 46vh; overflow-y: auto; scrollbar-width: none; text-align: left; }
.tut-rbody::-webkit-scrollbar { display: none; }
.tut-result .tut-next { margin-top: 8px; }
@media (max-height: 520px) { .tut-result .sc-panel { padding: 10px 18px 10px; } .tut-rbody { max-height: 40vh; } .tut-result .tut-ttitle { font-size: 20px; } }
/* glow + bobbing pointer on the button the guide wants pressed (lobby, codex, training) */
.tut-glow { position: relative; animation: tutGlow 1.1s ease-in-out infinite; z-index: 2; }
@keyframes tutGlow { 0%, 100% { box-shadow: 0 0 0 2px #ffe08a, 0 0 12px 3px rgba(255, 200, 80, .6); } 50% { box-shadow: 0 0 0 4px #fff2b8, 0 0 26px 10px rgba(255, 200, 80, .95); } }
.tut-point { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: 5;
  padding: 3px 10px; border-radius: 8px; font: 900 13px var(--font); color: #2a0805; background: linear-gradient(#fff0b0, #f4c55a); border: 2px solid #7a160d;
  animation: tutPoint .9s ease-in-out infinite; }
.tut-point::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -8px; border: 8px solid transparent; border-top-color: #7a160d; }
@keyframes tutPoint { 50% { transform: translate(-50%, -6px); } }
.uc-free { min-width: 170px; }
.uc-resnote { max-width: 520px; margin: 4px auto 6px; font-size: 14px; line-height: 1.45; color: #ffe2a0; text-align: center; }
@media (max-height: 520px) {
  .tut-gift .sc-panel { padding: 14px 20px 12px; gap: 3px; } .tut-gframe { width: 78px; height: 78px; } .tut-gname { font-size: 19px; }
  .tut-gstat { font-size: 18px; } .tut-gdesc { font-size: 13px; } .tut-point { font-size: 12px; }
  .tut-bubble { max-width: 46vw; min-width: 150px; padding: 8px 12px; } .tut-btxt { font-size: 14px; }
  .tut-skip { top: 70px; font-size: 14px; }
  .tut-enc { font-size: 32px; }
  .tut-tips { padding: 16px 22px 14px; } .tut-ttitle { font-size: 20px; margin-bottom: 6px; } .tut-tbody { font-size: 15px; }
}
