/* ============================================================
   FORK LANDING — inline mini-app widgets (.l-wg-*)
   Contains: shared .l-wg layout + per-widget styles for
   timer / todo / mood / clock / dice / heart / fit / msg /
   quiz / squid / mmo. All inherit site CSS variables.
   ============================================================ */

/* ═══════════════════════════════════════════════════
   INLINE WIDGETS (.l-wg-*) — frontend-only mini apps
   rendered as DOM, inherit site CSS variables.
   Used in hero Stage preview AND Apps Arc cards.
   Use container-friendly clamp() padding so widgets look
   good both inside small arc cards (240×360) and inside the
   stretched hero stage device body (~600×440).
   ═══════════════════════════════════════════════════ */
.l-wg {
    position: relative;
    width: 100%;
    height: 100%;
    padding: clamp(14px, 4%, 28px) clamp(15px, 5%, 32px) clamp(16px, 5%, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2%, 16px);
    min-height: 0;
    overflow: hidden;
    background: var(--l-surface);
    color: var(--l-fg);
    font-family: inherit;
    border-radius: inherit;
    user-select: none;
}
.l-wg * { box-sizing: border-box; }

.l-wg button {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}
.l-wg button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}
.l-wg svg { display: block; }

.l-wg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--l-muted);
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}
.l-wg-head-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--l-dim);
}
.l-wg-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.l-wg-tnum { font-variant-numeric: tabular-nums; }

/* ═══ Timer widget ═══ */
.l-wg-timer .l-wg-ring {
    position: relative;
    width: clamp(130px, 50%, 220px);
    aspect-ratio: 1 / 1;
    margin: auto auto 0;
    flex-shrink: 0;
}
.l-wg-timer .l-wg-ring svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}
.l-wg-timer .l-wg-ring .track {
    stroke: var(--l-border);
    stroke-width: 7;
    fill: none;
}
.l-wg-timer .l-wg-ring .bar {
    stroke: url(#l-wg-timer-grad);
    stroke-width: 7;
    stroke-linecap: round;
    fill: none;
    transition: stroke-dashoffset 0.95s linear;
    filter: drop-shadow(0 0 8px rgba(255, 69, 58, 0.5));
}
.l-wg-timer .l-wg-time {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.l-wg-timer .l-wg-time-num {
    font-size: clamp(26px, 6cqi, 44px);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--l-fg);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.l-wg-timer .l-wg-time-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--l-muted);
    margin-top: 6px;
    font-weight: 700;
}
.l-wg-timer .l-wg-presets {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-shrink: 0;
}
.l-wg-timer .l-wg-preset {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg-body);
    color: var(--l-dim);
    font-size: 10.5px;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.l-wg-timer .l-wg-preset.active {
    background: color-mix(in srgb, #ff453a 15%, var(--l-surface));
    color: #ff453a;
    border-color: color-mix(in srgb, #ff453a 35%, transparent);
}
.l-wg-timer .l-wg-btn {
    padding: 10px;
    border-radius: 11px;
    background: #ff453a;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    transition: transform 0.12s, background 0.2s, box-shadow 0.25s;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -6px rgba(255, 69, 58, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.l-wg-timer .l-wg-btn svg { width: 12px; height: 12px; fill: currentColor; }
.l-wg-timer .l-wg-btn:active { transform: scale(0.97); }
.l-wg-timer .l-wg-btn.paused {
    background: var(--l-surface);
    color: var(--l-fg);
    border: 1px solid var(--l-border);
    box-shadow: none;
}

/* ═══ Todo widget ═══ */
.l-wg-todo .l-wg-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-shrink: 0;
}
.l-wg-todo .l-wg-day {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--l-fg);
    line-height: 1;
}
.l-wg-todo .l-wg-count {
    font-size: 10.5px;
    color: var(--l-dim);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.l-wg-todo .l-wg-count strong { color: var(--l-fg); font-weight: 700; }
.l-wg-todo .l-wg-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--l-border);
    overflow: hidden;
    flex-shrink: 0;
    margin-top: -2px;
}
.l-wg-todo .l-wg-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3aa7ff, #0a84ff);
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.25, 1);
    box-shadow: 0 0 12px rgba(10, 132, 255, 0.55);
}
.l-wg-todo .l-wg-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}
.l-wg-todo .l-wg-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    border-radius: 10px;
    font-size: 11.5px;
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 0;
    text-align: left;
    width: 100%;
}
.l-wg-todo .l-wg-item.done { opacity: 0.48; }
.l-wg-todo .l-wg-item.done .l-wg-text { text-decoration: line-through; }
.l-wg-todo .l-wg-check {
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--l-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.25, 1);
    background: var(--l-surface);
}
.l-wg-todo .l-wg-item.done .l-wg-check {
    background: #0a84ff;
    border-color: #0a84ff;
}
.l-wg-todo .l-wg-check svg {
    width: 10px; height: 10px;
    stroke: #fff; fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.15s;
}
.l-wg-todo .l-wg-item.done .l-wg-check svg { opacity: 1; }
.l-wg-todo .l-wg-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--l-fg);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.l-wg-todo .l-wg-tag {
    flex-shrink: 0;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.l-wg-todo .l-wg-tag-w { background: color-mix(in srgb, #ff9500 16%, transparent); color: #ff9500; }
.l-wg-todo .l-wg-tag-l { background: color-mix(in srgb, #bf5af2 14%, transparent); color: #bf5af2; }
.l-wg-todo .l-wg-tag-p { background: color-mix(in srgb, #0a84ff 14%, transparent); color: #0a84ff; }

/* ═══ Mood widget ═══ */
.l-wg-mood .l-wg-greet {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--l-fg);
    line-height: 1.1;
    margin-top: 2px;
}
.l-wg-mood .l-wg-sub {
    font-size: 11px;
    color: var(--l-dim);
    line-height: 1.4;
    min-height: 1.4em;
}
.l-wg-mood .l-wg-streak {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 20px;
    margin-top: 2px;
}
.l-wg-mood .l-wg-streak-dot {
    flex: 1;
    border-radius: 3px;
    background: var(--l-border);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.l-wg-mood .l-wg-streak-label {
    font-size: 8px;
    color: var(--l-muted);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}
.l-wg-mood .l-wg-moods {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.l-wg-mood .l-wg-mood {
    aspect-ratio: 1/1;
    border-radius: 11px;
    background: var(--bg-body);
    border: 1.5px solid var(--l-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--l-dim);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.l-wg-mood .l-wg-mood svg {
    width: 22px; height: 22px;
    stroke: currentColor; fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}
.l-wg-mood .l-wg-mood:hover { border-color: var(--border-hover, var(--l-border)); }
.l-wg-mood .l-wg-mood.active {
    background: color-mix(in srgb, #30d158 12%, var(--l-surface));
    border-color: #30d158;
    color: #30d158;
    box-shadow: 0 6px 16px -6px rgba(48, 209, 88, 0.45);
    transform: translateY(-1px);
}

/* ═══ Clock widget ═══ */
.l-wg-clock .l-wg-face {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 2px auto 0;
    flex-shrink: 0;
}
.l-wg-clock .l-wg-face svg { width: 100%; height: 100%; overflow: visible; }
.l-wg-clock .face-bg {
    fill: var(--bg-body);
    stroke: var(--l-border);
    stroke-width: 1.2;
}
.l-wg-clock .tick {
    stroke: var(--l-dim);
    stroke-linecap: round;
    stroke-width: 1.2;
}
.l-wg-clock .tick.h {
    stroke-width: 2;
    stroke: var(--l-fg);
}
.l-wg-clock .hand { stroke-linecap: round; }
.l-wg-clock .hand.h { stroke: var(--l-fg); stroke-width: 5; }
.l-wg-clock .hand.m { stroke: var(--l-fg); stroke-width: 3.5; }
.l-wg-clock .hand.s {
    stroke: #bf5af2;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px rgba(191, 90, 242, 0.5));
}
.l-wg-clock .cap {
    fill: #bf5af2;
    stroke: var(--l-surface);
    stroke-width: 2;
}
.l-wg-clock .l-wg-digital {
    text-align: center;
    margin-top: auto;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.l-wg-clock .l-wg-digital-time {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--l-fg);
    line-height: 1;
}
.l-wg-clock .l-wg-digital-time .sep {
    color: #bf5af2;
    animation: l-cursor-blink 1s step-end infinite;
}
.l-wg-clock .l-wg-digital-date {
    font-size: 9px;
    color: var(--l-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

/* ═══ Dice widget ═══ */
.l-wg-dice .l-wg-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 400px;
}
.l-wg-dice .l-wg-die {
    position: relative;
    width: clamp(108px, 38%, 180px);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 20px;
    background:
      linear-gradient(155deg,
        color-mix(in srgb, var(--l-fg) 2%, var(--l-surface)) 0%,
        var(--l-surface) 55%,
        var(--bg-body) 100%);
    border: 1.5px solid var(--l-border);
    box-shadow:
      inset 0 -4px 0 var(--l-border),
      inset 0 2px 0 color-mix(in srgb, var(--l-fg) 4%, transparent),
      0 14px 30px -10px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    padding: 14px;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.l-wg-dice .l-wg-die:hover  { transform: translateY(-2px) rotateX(3deg) rotateY(-3deg); }
.l-wg-dice .l-wg-die:active { transform: translateY(1px) scale(0.97); }
.l-wg-dice .l-wg-die.rolling { animation: l-wg-roll 0.6s cubic-bezier(0.2, 0.8, 0.25, 1); }
@keyframes l-wg-roll {
    0%   { transform: rotate(0) scale(1); }
    50%  { transform: rotate(180deg) scale(0.86); }
    100% { transform: rotate(360deg) scale(1); }
}
.l-wg-dice .l-wg-pip {
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, var(--l-fg) 0%, var(--l-dim) 70%);
    opacity: 0;
    align-self: center;
    justify-self: center;
    width: 13px; height: 13px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: opacity 0.18s;
}
.l-wg-dice .l-wg-pip.on { opacity: 1; }
.l-wg-dice .l-wg-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}
.l-wg-dice .l-wg-stat { display: flex; flex-direction: column; gap: 1px; }
.l-wg-dice .l-wg-stat-num {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--l-fg);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.l-wg-dice .l-wg-stat-lbl {
    font-size: 8px;
    color: var(--l-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}
.l-wg-dice .l-wg-hint {
    text-align: center;
    font-size: 9px;
    color: var(--l-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══ Heart widget ═══ */
.l-wg-heart .l-wg-count {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.05em;
    color: var(--l-fg);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-top: 4px;
}
.l-wg-heart .l-wg-count-sub {
    text-align: center;
    font-size: 9px;
    color: var(--l-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}
.l-wg-heart .l-wg-btn-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.l-wg-heart .l-wg-heart-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,
      color-mix(in srgb, #ff2d55 28%, var(--bg-body)),
      color-mix(in srgb, #ff2d55 12%, var(--bg-body)));
    color: #ff2d55;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.15s;
    box-shadow:
      0 12px 28px -8px rgba(255, 45, 85, 0.55),
      inset 0 0 0 1px rgba(255, 45, 85, 0.3);
}
.l-wg-heart .l-wg-heart-btn::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 45, 85, 0.25);
    animation: l-wg-pulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes l-wg-pulse {
    0%   { transform: scale(0.9); opacity: 0.9; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}
.l-wg-heart .l-wg-heart-btn:active { transform: scale(0.88); }
.l-wg-heart .l-wg-heart-btn svg {
    width: 32px; height: 32px;
    fill: currentColor;
    filter: drop-shadow(0 0 6px rgba(255, 45, 85, 0.45));
}
.l-wg-heart .l-wg-heart-btn.pulse svg { animation: l-wg-bump 0.4s ease-out; }
@keyframes l-wg-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.l-wg-heart .l-wg-float {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #ff2d55;
    pointer-events: none;
    animation: l-wg-float 1s ease-out forwards;
}
.l-wg-heart .l-wg-float svg { width: 18px; height: 18px; fill: currentColor; }
@keyframes l-wg-float {
    from { opacity: 1; transform: translate(-50%, -50%) scale(0.4) rotate(var(--rot, 0deg)); }
    to   { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 90px)) scale(1.3) rotate(var(--rot, 0deg)); }
}
.l-wg-heart .l-wg-msg {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--l-dim);
    min-height: 14px;
}

/* ═══ Fit / weight widget ═══ */
.l-wg-fit .l-wg-head-title { color: #5ac8fa; }
.l-wg-fit .l-wg-fit-now {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}
.l-wg-fit .l-wg-fit-num {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--l-fg);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.l-wg-fit .l-wg-fit-u {
    font-size: 12px;
    color: var(--l-dim);
    font-weight: 600;
    margin-left: 2px;
}
.l-wg-fit .l-wg-fit-goal {
    font-size: 10px;
    color: var(--l-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}
.l-wg-fit .l-wg-fit-goal strong { color: var(--l-fg); }
.l-wg-fit .l-wg-fit-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--l-border);
    overflow: hidden;
    margin-top: 2px;
}
.l-wg-fit .l-wg-fit-barfill {
    height: 100%;
    background: linear-gradient(to right, #5ac8fa, #30d158);
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.25, 1);
    box-shadow: 0 0 10px rgba(90, 200, 250, 0.5);
}
.l-wg-fit .l-wg-fit-log {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 4px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.l-wg-fit .l-wg-fit-bar-day { flex: 1; display: flex; flex-direction: column; align-items: stretch; }
.l-wg-fit .l-wg-fit-bar-slot {
    height: 100%;
    min-height: 50px;
    max-height: 130px;
    display: flex;
    align-items: flex-end;
    background: var(--bg-body);
    border-radius: 6px;
    padding: 4px;
}
.l-wg-fit .l-wg-fit-bar-val {
    width: 100%;
    border-radius: 3px;
    background: linear-gradient(to top, #5ac8fa, #30d158);
}
.l-wg-fit .l-wg-fit-btn {
    padding: 9px;
    border-radius: 10px;
    background: #5ac8fa;
    color: #003349;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform 0.12s;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -6px rgba(90, 200, 250, 0.6);
}
.l-wg-fit .l-wg-fit-btn:active { transform: scale(0.97); }

/* ═══ Messenger widget ═══ */
.l-wg-msg .l-wg-head-title { color: #5e5ce6; }
.l-wg-msg .l-wg-msg-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
    padding-top: 4px;
}
.l-wg-msg .l-wg-msg-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    border-radius: 11px;
    text-align: left;
    min-width: 0;
    transition: border-color 0.2s;
    width: 100%;
}
.l-wg-msg .l-wg-msg-item:hover { border-color: var(--l-dim); }
.l-wg-msg .l-wg-msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.l-wg-msg .l-wg-msg-meta {
    flex: 1 1 auto;
    min-width: 0;
}
.l-wg-msg .l-wg-msg-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.l-wg-msg .l-wg-msg-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--l-fg);
}
.l-wg-msg .l-wg-msg-ts {
    font-size: 9px;
    color: var(--l-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.l-wg-msg .l-wg-msg-last {
    font-size: 10.5px;
    color: var(--l-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.l-wg-msg .l-wg-msg-badge {
    flex-shrink: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: #5e5ce6;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.l-wg-msg .l-wg-msg-compose {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    border-radius: 11px;
    flex-shrink: 0;
}
.l-wg-msg .l-wg-msg-compose .l-wg-msg-avatar { width: 22px; height: 22px; font-size: 8px; }
.l-wg-msg .l-wg-msg-input {
    flex: 1;
    font-size: 11px;
    color: var(--l-muted);
    display: flex;
    align-items: center;
}
.l-wg-msg .l-wg-msg-caret {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: #5e5ce6;
    animation: l-cursor-blink 0.85s step-end infinite;
}

/* ═══ Quiz 2P widget ═══ */
.l-wg-quiz .l-wg-head-title { color: #ff9f0a; }
.l-wg-quiz .l-wg-quiz-scores {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 2px;
    flex-shrink: 0;
}
.l-wg-quiz .l-wg-quiz-player { text-align: center; flex: 1; }
.l-wg-quiz .l-wg-quiz-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
}
.l-wg-quiz .l-wg-quiz-name {
    font-size: 9px;
    color: var(--l-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}
.l-wg-quiz .l-wg-quiz-score {
    font-size: 16px;
    font-weight: 800;
    color: var(--l-fg);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.l-wg-quiz .l-wg-quiz-vs {
    font-size: 10px;
    color: var(--l-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0 4px;
}
.l-wg-quiz .l-wg-quiz-q {
    font-size: 12px;
    font-weight: 600;
    color: var(--l-fg);
    text-align: center;
    line-height: 1.3;
    margin-top: 2px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.l-wg-quiz .l-wg-quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    flex-shrink: 0;
}
.l-wg-quiz .l-wg-quiz-ans {
    padding: 9px;
    border-radius: 10px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    color: var(--l-fg);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}
.l-wg-quiz .l-wg-quiz-ans:hover {
    border-color: #ff9f0a;
}
.l-wg-quiz .l-wg-quiz-ans.ok {
    background: color-mix(in srgb, #30d158 22%, var(--bg-body));
    border-color: #30d158;
    color: #30d158;
}
.l-wg-quiz .l-wg-quiz-ans.bad {
    background: color-mix(in srgb, #ff453a 22%, var(--bg-body));
    border-color: #ff453a;
    color: #ff453a;
}

/* ═══ Squid RLGL 2P widget ═══ */
.l-wg-squid .l-wg-head-title { color: #ff375f; }
.l-wg-squid .l-wg-squid-board {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 8px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    border-radius: 12px;
    padding: 6px 6px 6px;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}
.l-wg-squid .l-wg-squid-board.red {
    background: color-mix(in srgb, #ff375f 12%, var(--bg-body));
    border-color: color-mix(in srgb, #ff375f 50%, var(--l-border));
}
.l-wg-squid .l-wg-squid-finish {
    position: absolute;
    top: 4px;
    left: 0; right: 0;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--l-muted);
}
.l-wg-squid .l-wg-squid-lane {
    flex: 1;
    position: relative;
    background: var(--l-surface);
    border-radius: 8px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 20px;
    overflow: hidden;
}
.l-wg-squid .l-wg-squid-label {
    position: absolute;
    bottom: 4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--l-muted);
}
.l-wg-squid .l-wg-squid-pawn {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff375f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    transition: bottom 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
    box-shadow: 0 3px 10px -2px rgba(255, 55, 95, 0.6);
    margin-bottom: 24px;
}
.l-wg-squid .l-wg-squid-lane:nth-child(3) .l-wg-squid-pawn { background: #bf5af2; box-shadow: 0 3px 10px -2px rgba(191, 90, 242, 0.6); }
.l-wg-squid .l-wg-squid-btn {
    padding: 10px;
    border-radius: 11px;
    background: #30d158;
    color: #052d10;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 0.12s, background 0.2s;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -4px rgba(48, 209, 88, 0.6);
}
.l-wg-squid .l-wg-squid-btn:active { transform: scale(0.96); }
.l-wg-squid .l-wg-squid-btn.red {
    background: #ff375f;
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(255, 55, 95, 0.6);
}
.l-wg-squid .l-wg-squid-btn.won {
    background: #ffd60a;
    color: #332a00;
}

/* ═══ Adventure MMO widget ═══ */
.l-wg-mmo { align-items: center; }
.l-wg-mmo .l-wg-head { width: 100%; }
.l-wg-mmo .l-wg-mmo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    border-radius: 10px;
    padding: 6px;
    /* Square grid that fills available space — capped at the smaller
       of width or remaining height so it never overflows */
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    margin: auto auto 8px;
    flex: 0 1 auto;
    min-height: 0;
}
.l-wg-mmo .l-wg-mmo-cell {
    aspect-ratio: 1/1;
    background: var(--l-surface);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--l-fg);
}
.l-wg-mmo .l-wg-mmo-cell.wall {
    background: color-mix(in srgb, var(--l-fg) 18%, var(--bg-body));
}
.l-wg-mmo .l-wg-mmo-cell.star { color: #ffd60a; font-size: 13px; }
.l-wg-mmo .l-wg-mmo-cell.coin { color: #ffd60a; font-size: 16px; }
.l-wg-mmo .l-wg-mmo-cell.you {
    background: #30d158;
    color: #fff;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, #30d158 60%, #fff);
}
.l-wg-mmo .l-wg-mmo-ctrls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    flex-shrink: 0;
}
.l-wg-mmo .l-wg-mmo-row {
    display: flex;
    gap: 3px;
}
.l-wg-mmo .l-wg-mmo-ctrls button {
    width: 28px;
    height: 24px;
    border-radius: 6px;
    background: var(--bg-body);
    border: 1px solid var(--l-border);
    color: var(--l-fg);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.l-wg-mmo .l-wg-mmo-ctrls button:hover {
    background: #30d158;
    color: #fff;
    border-color: #30d158;
}
.l-wg-mmo .l-wg-mmo-ctrls button:active { transform: scale(0.95); }

/* Shared keyframes (used by watch spinner, scroll curve) */
@keyframes l-spin {
    to { transform: rotate(360deg); }
}

@keyframes l-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Watch skeleton inherits this utility */
.l-watch-skeleton .sk {
    background: linear-gradient(90deg, var(--l-border) 0%, var(--bg-tertiary) 50%, var(--l-border) 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: l-shimmer 1.6s infinite;
}

