/* ════════════════════════════════════════════════════════════════════
   Startguiden (GuideDock) – noir/neon som landning & skapa karaktär
   ════════════════════════════════════════════════════════════════════ */
.gwg-dock, .gwg-modal, .gwg-pill {
    --g-text: #f2f4f7; --g-muted: #a3acb9; --g-dim: #7d8694; --g-line: rgba(255,255,255,.09);
    --g-red: #ff3b3b; --g-red2: #c81e1e; --g-gold: #f5c451; --g-green: #3ddc84;
    font-family: 'Roboto', system-ui, sans-serif; color: var(--g-text); box-sizing: border-box;
}
.gwg-dock *, .gwg-modal *, .gwg-pill * { box-sizing: border-box; }
.gwg-kicker { display: inline-flex; align-items: center; gap: 7px; font: 700 10.5px/1 'Roboto', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffb4ab; }
.gwg-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--g-red); animation: gwg-pulse 1.8s infinite; }
.gwg-green { color: var(--g-green) !important; }

/* ── Knappar ── */
.gwg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
    font: 700 15px/1 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.gwg-btn--primary { color: #140606; background: linear-gradient(135deg, #ff6a4a, var(--g-red) 45%, var(--g-red2)); box-shadow: 0 12px 30px -10px rgba(255,59,59,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.gwg-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(255,59,59,.95), inset 0 1px 0 rgba(255,255,255,.35); }
.gwg-btn--ghost { color: var(--g-text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); }
.gwg-btn--ghost:hover { border-color: var(--g-gold); color: var(--g-gold); }
.gwg-btn--sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 10px; }
.gwg-btn:disabled { filter: grayscale(.6) brightness(.6); cursor: default; }
.gwg-btn:active:not(:disabled) { transform: translateY(1px) !important; box-shadow: none !important; }   /* neutraliserar skarpskytten.css */
.gwg-link { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--g-dim); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.gwg-link:hover { color: var(--g-text); }
.gwg-link--danger { color: #ff8a80; }
.gwg-link:active, .gwg-icon-btn:active, .gwg-pill:active { transform: none !important; box-shadow: none !important; }
.gwg-icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--g-line); background: rgba(255,255,255,.04);
    color: var(--g-muted); cursor: pointer; font-weight: 700; }
.gwg-icon-btn:hover { color: var(--g-text); border-color: rgba(255,255,255,.25); }
.gwg-dock :focus-visible, .gwg-modal :focus-visible, .gwg-pill:focus-visible { outline: 2px solid var(--g-gold); outline-offset: 2px; }

/* ── Panelen ── */
.gwg-dock { position: fixed; right: 20px; bottom: 20px; z-index: 1240; width: 370px; max-width: calc(100vw - 24px); padding: 14px 16px 12px;
    border-radius: 18px; border: 1px solid rgba(245,196,81,.22); background: rgba(12,14,19,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 70px -20px rgba(0,0,0,.95), 0 0 0 1px rgba(255,59,59,.08), 0 0 40px -18px rgba(245,196,81,.35); animation: gwg-up .45s cubic-bezier(.2,.8,.2,1) both; }
.gwg-dock__head { display: flex; align-items: center; gap: 10px; }
.gwg-dock__count { margin-left: auto; font: 700 12px/1 'Oswald', sans-serif; letter-spacing: .08em; color: var(--g-gold); }
.gwg-seg { display: grid; grid-auto-flow: column; gap: 4px; margin: 10px 0 12px; }
.gwg-seg i { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); }
.gwg-seg i.done { background: linear-gradient(90deg, var(--g-gold), #ff8a3d); }
.gwg-seg i.cur { background: linear-gradient(90deg, var(--g-red), #ff8a3d); box-shadow: 0 0 10px rgba(255,59,59,.7); animation: gwg-glow 1.6s ease-in-out infinite alternate; }
.gwg-main { display: flex; gap: 12px; align-items: flex-start; animation: gwg-in .4s ease both; }
.gwg-main__ico { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 24px;
    background: radial-gradient(circle at 30% 20%, rgba(245,196,81,.25), rgba(255,59,59,.12)); border: 1px solid rgba(245,196,81,.25); }
.gwg-main__title { margin: 2px 0 4px; font: 700 18px/1.15 'Oswald', sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.gwg-main__body { margin: 0; color: var(--g-muted); font-size: 13.5px; line-height: 1.5; }
.gwg-goal { margin-top: 12px; }
.gwg-goal__row { display: flex; justify-content: space-between; font-size: 12px; color: var(--g-dim); margin-bottom: 6px; }
.gwg-goal__row b { color: var(--g-text); font-family: 'Oswald', sans-serif; letter-spacing: .03em; }
.gwg-goal__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.gwg-goal__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g-gold), #ff8a3d, var(--g-red));
    box-shadow: 0 0 12px rgba(255,138,61,.6); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.gwg-reward { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px;
    color: #d5dae1; background: rgba(61,220,132,.07); border: 1px solid rgba(61,220,132,.22); }
.gwg-reward b { color: var(--g-green); font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: .03em; }
.gwg-reward.is-none { background: rgba(255,255,255,.03); border-color: var(--g-line); }
.gwg-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.gwg-actions .gwg-btn { width: 100%; }
.gwg-actions__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.gwg-onpage { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: var(--g-gold); background: rgba(245,196,81,.08); border: 1px dashed rgba(245,196,81,.35); }
.gwg-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: #ffd6d2; }

/* Steg klart */
.gwg-done { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(61,220,132,.16), rgba(61,220,132,.05)); border: 1px solid rgba(61,220,132,.4); animation: gwg-pop .5s cubic-bezier(.3,1.5,.5,1) both; }
.gwg-done__check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--g-green); color: #04140a; font-weight: 900; box-shadow: 0 0 18px rgba(61,220,132,.7); }
.gwg-done div { display: flex; flex-direction: column; font-size: 12px; color: var(--g-muted); }
.gwg-done b { color: var(--g-text); font: 700 14px/1.2 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.gwg-done__rw { margin-left: auto; font: 700 18px/1 'Oswald', sans-serif; color: var(--g-green); text-shadow: 0 0 14px rgba(61,220,132,.6); }
.gwg-dock.is-celebrating { border-color: rgba(61,220,132,.5); }

/* ── Minimerad ── */
.gwg-pill { position: fixed; right: 20px; bottom: 20px; z-index: 1240; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px);
    padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(245,196,81,.35); background: rgba(12,14,19,.94); color: var(--g-text);
    cursor: pointer; box-shadow: 0 12px 40px -12px rgba(0,0,0,.9), 0 0 24px -10px rgba(245,196,81,.5); animation: gwg-up .35s ease both; }
.gwg-pill__ring { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
    background: conic-gradient(var(--g-gold) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); }
.gwg-pill__ring span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0c0e13; font-size: 17px; }
.gwg-pill__txt { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.gwg-pill__txt small { font-size: 10.5px; color: var(--g-gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.gwg-pill__txt b { font: 700 14px/1.2 'Oswald', sans-serif; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.gwg-pill__chev { color: var(--g-dim); font-size: 14px; }

/* ── Välkomst/slut-kort ── */
.gwg-modal { position: fixed; inset: 0; z-index: 1450; display: grid; place-items: center; padding: 16px; overflow-y: auto;
    background: radial-gradient(900px 500px at 50% 0%, rgba(255,59,59,.18), transparent 60%), rgba(4,5,8,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: gwg-fade .3s ease both; }
.gwg-modal__card { position: relative; width: min(560px, 100%); padding: 30px 28px 22px; border-radius: 24px; overflow: hidden; text-align: center;
    background: linear-gradient(180deg, rgba(20,22,29,.97), rgba(10,11,15,.98)); border: 1px solid rgba(245,196,81,.25);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,1), 0 0 60px -20px rgba(255,59,59,.45); animation: gwg-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.gwg-modal__glow { position: absolute; inset: -40% -20% auto; height: 300px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(245,196,81,.18), transparent); animation: gwg-drift 10s ease-in-out infinite alternate; }
.gwg-modal__title { position: relative; margin: 14px 0 10px; font: 700 clamp(28px, 6vw, 40px)/1.05 'Oswald', sans-serif; letter-spacing: .02em; text-transform: uppercase;
    background: linear-gradient(180deg, #fff, #c9ced6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gwg-modal__lead { position: relative; margin: 0 auto 18px; max-width: 440px; color: var(--g-muted); font-size: 14.5px; line-height: 1.6; }
.gwg-modal__actions { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 18px; }
.gwg-modal__card--finale .gwg-modal__actions { grid-template-columns: 1fr; }
.gwg-modal .gwg-link { position: relative; margin-top: 12px; }
.gwg-road { position: relative; text-align: left; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--g-line); }
.gwg-road__label { font: 700 11px/1 'Roboto', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--g-dim); margin-bottom: 10px; }
.gwg-road__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; counter-reset: gwg; }
.gwg-road__list li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: rgba(5,6,9,.6); border: 1px solid var(--g-line);
    font-size: 12.5px; animation: gwg-in .4s ease both; animation-delay: calc(var(--i) * 45ms); }
.gwg-road__ico { font-size: 16px; }
.gwg-road__txt { flex: 1; min-width: 0; color: #dfe3e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwg-road__rw { color: var(--g-green); font: 700 12px/1 'Oswald', sans-serif; white-space: nowrap; }
.gwg-road__total { margin-top: 12px; font-size: 13px; color: var(--g-muted); text-align: center; }
.gwg-road__total b { color: var(--g-green); font-family: 'Oswald', sans-serif; font-size: 16px; }
.gwg-trophy { position: relative; font-size: 64px; line-height: 1; filter: drop-shadow(0 0 24px rgba(245,196,81,.6)); animation: gwg-bounce 1.4s ease-in-out infinite alternate; }
.gwg-sum { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gwg-sum div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--g-line); }
.gwg-sum small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); font-weight: 700; }
.gwg-sum b { font: 700 24px/1.1 'Oswald', sans-serif; color: var(--g-gold); }
.gwg-sum span { font-size: 11.5px; color: var(--g-muted); }
.gwg-next { position: relative; margin-top: 16px; text-align: left; }
.gwg-next__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gwg-next__links a { padding: 10px 6px; border-radius: 10px; text-align: center; text-decoration: none; font-size: 13px; font-weight: 600; color: #dfe3e9;
    background: rgba(255,255,255,.04); border: 1px solid var(--g-line); transition: border-color .2s, color .2s; }
.gwg-next__links a:hover { border-color: var(--g-gold); color: var(--g-gold); }

/* ── Pekaren på riktiga UI-element ── */
.gwg-target { position: relative; z-index: 2; outline: 2px solid var(--gwg-gold, #f5c451) !important; outline-offset: 3px; border-radius: 10px;
    animation: gwg-target 1.4s ease-in-out infinite !important; }
@keyframes gwg-target { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,196,81,.65); } 50% { box-shadow: 0 0 0 9px rgba(245,196,81,0); } }

/* Under ett pågående minispel göms guiden helt */
body.gwg-playing .gwg-dock, body.gwg-playing .gwg-pill { display: none; }

/* ── Mobil: kompakt panel ovanför bottennavigeringen ── */
@media (max-width: 760px) {
    .gwg-dock { left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(70px + env(safe-area-inset-bottom)); padding: 10px 12px 10px; border-radius: 16px; }
    .gwg-seg { margin: 8px 0 10px; }
    .gwg-main__ico { width: 38px; height: 38px; font-size: 20px; border-radius: 11px; }
    .gwg-main__title { font-size: 16px; }
    .gwg-main__body { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .gwg-goal { margin-top: 8px; }
    .gwg-reward { margin-top: 8px; padding: 6px 10px; }
    .gwg-actions { margin-top: 8px; }
    .gwg-done { margin-bottom: 8px; padding: 8px 10px; }
    .gwg-pill { right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); }
    body.gwg-on .gw-main-content { padding-bottom: calc(72px + 300px + env(safe-area-inset-bottom)) !important; }
    .gwg-modal { place-items: end center; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
    .gwg-modal__card { padding: 22px 16px 16px; border-radius: 20px; }
    .gwg-road__list { gap: 5px; }
    .gwg-road__list li { padding: 6px 7px; font-size: 11.5px; gap: 6px; }
    .gwg-next__links { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 761px) { body.gwg-on .gw-main-content { padding-bottom: 60px; } }

@keyframes gwg-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes gwg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gwg-rise { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gwg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gwg-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes gwg-glow { from { opacity: .7; } to { opacity: 1; } }
@keyframes gwg-bounce { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-8px) rotate(4deg); } }
@keyframes gwg-drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
@keyframes gwg-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
@media (prefers-reduced-motion: reduce) {
    .gwg-dock, .gwg-dock *, .gwg-modal, .gwg-modal *, .gwg-pill, .gwg-pill *, .gwg-target { animation: none !important; transition: none !important; }
}

/* ── Uppdrag & prestationer i guiden ── */
.gwg-goals { margin-top: 12px; border: 1px solid rgba(245,196,81,.22); border-radius: 10px; background: linear-gradient(180deg, rgba(245,196,81,.05), rgba(0,0,0,.35)); overflow: hidden; }
.gwg-goals__head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: none; border: 0; color: var(--g-gold); cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.gwg-goals__badge { padding: 1px 8px; border-radius: 999px; background: var(--g-red2); color: #fff; font-size: 11px; letter-spacing: 0; animation: gwg-pulse 1.8s infinite; }
.gwg-goals__chev { margin-left: auto; color: var(--g-muted); }
.gwg-goals__label { display: flex; justify-content: space-between; padding: 6px 12px 2px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-dim); }
.gwg-goals__label a { color: var(--g-gold); text-decoration: none; letter-spacing: .04em; text-transform: none; font-size: 11.5px; }
.gwg-goal-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; color: var(--g-text); text-decoration: none; }
.gwg-goal-row:hover { background: rgba(245,196,81,.06); }
.gwg-goal-row:last-child { padding-bottom: 10px; }
.gwg-goal-row__ico { width: 22px; text-align: center; font-size: 16px; flex-shrink: 0; }
.gwg-goal-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gwg-goal-row__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.gwg-goal-row__top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gwg-goal-row__top em { font-style: normal; color: var(--g-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gwg-goal-row__bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.07); overflow: hidden; }
.gwg-goal-row__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g-red2), var(--g-red), var(--g-gold)); }
.gwg-goal-row.is-claim .gwg-goal-row__top em { color: var(--g-green); font-weight: 700; }
.gwg-goal-row.is-claim .gwg-goal-row__bar i { background: var(--g-green); }
