/* Alliance Wars - first-time tutorial overlay (spotlight, advisor bubble, pointer) */
#tut { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
#tut[hidden] { display: none; }
.tut-hole { will-change: left, top, width, height; position: fixed; pointer-events: none; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(5, 8, 16, .62);
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease, border-radius .18s; }
.tut-hole.ring::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 3px solid #ffd34d;
  box-shadow: 0 0 14px rgba(255, 211, 77, .7); animation: tutRing 1.2s ease-in-out infinite; }
@keyframes tutRing { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .55; } }
.tut-hand { position: fixed; pointer-events: none; width: 38px; height: 48px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5));
  animation: tutBob .8s ease-in-out infinite; }
.tut-hand.up svg { transform: rotate(180deg); }
.tut-hand[hidden] { display: none; }
@keyframes tutBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.tut-hand.up { animation-name: tutBobUp; }
@keyframes tutBobUp { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.tut-bubble { position: fixed; left: 50%; transform: translateX(-50%); width: min(calc(100vw - 24px), 400px); pointer-events: auto;
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 10px; border-radius: 16px;
  background: linear-gradient(#fbf1d8, #efdcae); color: #2a1d0e; border: 3px solid #5a3b17;
  box-shadow: 0 6px 0 #3a250c, 0 12px 26px rgba(0,0,0,.5); animation: tutIn .25s ease-out; }
.tut-bubble.top { top: calc(104px + env(safe-area-inset-top, 0px)); }
.tut-bubble.bottom { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
.tut-bubble.mid { top: 50%; transform: translate(-50%, -50%); }
@keyframes tutIn { from { opacity: 0; } to { opacity: 1; } }
.tut-av { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #6d8fc4, #2d3f66); border: 3px solid #5a3b17; overflow: hidden; }
.tut-av .ic { width: 58px; height: 58px; image-rendering: pixelated; }
.tut-main { flex: 1; min-width: 0; }
.tut-who { display: flex; align-items: baseline; gap: 6px; font: 800 16px var(--pix, 'Nunito', sans-serif); }
.tut-who small { font: 800 12px Nunito, sans-serif; color: #7a5a2a; }
.tut-step { margin-left: auto; font: 800 12px Nunito, sans-serif; color: #7a5a2a; }
.tut-txt { margin: 4px 0 8px; font: 700 14px/1.35 Nunito, sans-serif; }
.tut-txt b { color: #8a2a12; }
.tut-btns { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tut-skip { min-height: 40px; padding: 0 8px; background: none; border: 0; color: #7a5a2a; font: 800 13px Nunito, sans-serif; text-decoration: underline; cursor: pointer; }
.tut-next { min-height: 40px; min-width: 110px; }

/* login: account code */
.login-link { min-height: 40px; background: none; border: 0; color: #cfe0ff; font: 800 14px Nunito, sans-serif; text-decoration: underline; cursor: pointer; }
#codeBox { width: 100%; display: flex; flex-direction: column; gap: 10px; }
#codeBox[hidden] { display: none; }
#codeBox input { text-align: center; font-size: 15px; }
#codeBox .btn { min-height: 46px; font-size: 17px; }
.login-pw { display: flex; flex-direction: column; gap: 10px; }
.login-or { color: var(--ink2); font-size: 13px; }
.login-google { min-height: 44px; display: flex; justify-content: center; } .login-google[hidden] { display: none; }
.so-acc { display: flex; flex-direction: column; gap: 8px; } .so-acc input { width: 100%; }
.so-acc .so-ok { color: #9be39b; font-weight: 800; }
.so-acc [data-gbtn] { min-height: 44px; display: flex; justify-content: center; } .so-acc [data-gbtn][hidden] { display: none; }

/* settings: account code card */
.so-code { display: flex; flex-direction: column; gap: 8px; }
.so-code-val { font: 800 13px/1.3 ui-monospace, Menlo, monospace; word-break: break-all; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.28); letter-spacing: .5px; user-select: all; }
.so-code-warn { color: #ffb4a0; font-weight: 800; font-size: 13px; }
/* premium pass */
.tut-av { width: 78px; height: 78px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 3px 0 rgba(58,37,12,.5); }
.tut-av .ic { width: 72px; height: 72px; }
.tut-av .ic.hd { image-rendering: auto; }
.tut-who { font-size: 18px; }
.tut-bubble { box-shadow: 0 6px 0 #3a250c, 0 12px 26px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.45); }
