/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --safe-area-top: 0px;
    --safe-area-bottom: 0px;
    --safe-area-left: 0px;
    --safe-area-right: 0px;
    --mascot-height: clamp(60px, 16vh, 96px);
    --board-max-width: 420px;
    --character-cell-size: clamp(46px, 12vw, 72px);
}

@supports (top: env(safe-area-inset-top)) {
    :root {
        --safe-area-top: env(safe-area-inset-top);
        --safe-area-bottom: env(safe-area-inset-bottom);
        --safe-area-left: env(safe-area-inset-left);
        --safe-area-right: env(safe-area-inset-right);
    }
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #a8e6cf 0%, #f0f8f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body.app-body {
    min-height: 100vh;
}

@supports (min-height: 100dvh) {
    body.app-body {
        min-height: 100dvh;
    }
}

@supports (min-height: 100svh) {
    body.app-body {
        min-height: 100svh;
    }
}

.app-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: inherit;
    width: 100%;
}

/* 背景层 */
.background-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

@supports (height: 100dvh) {
    .background-layer {
        height: 100dvh;
    }
}

@supports (height: 100svh) {
    .background-layer {
        height: 100svh;
    }
}

.cherry-blossom-bg {
    position: absolute;
    inset: calc(-1 * var(--safe-area-top)) calc(-1 * var(--safe-area-right)) calc(-1 * var(--safe-area-bottom)) calc(-1 * var(--safe-area-left));
    width: calc(100% + var(--safe-area-left) + var(--safe-area-right));
    height: calc(100% + var(--safe-area-top) + var(--safe-area-bottom));
    background-image: url('../assets/images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    transform: translateZ(0);
}

.background-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(168, 230, 207, 0.25) 0%, rgba(240, 248, 240, 0.55) 100%);
}

/* 顶部导航栏 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(60px + var(--safe-area-top));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--safe-area-top) 16px 0;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    z-index: 10;
}

.nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    text-align: center;
    pointer-events: none;
}

.level-progress {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 80px;
    text-align: left;
}

/* 游戏层 */
.game-layer {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    --layer-padding-x: clamp(16px, 5vw, 32px);
    gap: clamp(8px, 2vw, 18px);
    --board-width: min(92vw, var(--board-max-width));
    --grid-cols: 8;
    --grid-rows: 10;
    --cell-gap: clamp(2px, 1vw, 6px);
    --cell-size: calc((var(--board-width) - ((var(--grid-cols) - 1) * var(--cell-gap))) / var(--grid-cols));
    padding: calc(80px + var(--safe-area-top)) var(--layer-padding-x) calc(16px + var(--safe-area-bottom) + var(--mascot-height));
    padding-left: calc(var(--layer-padding-x) + var(--safe-area-left));
    padding-right: calc(var(--layer-padding-x) + var(--safe-area-right));
}

@supports (min-height: 100dvh) {
    .game-layer {
        min-height: 100dvh;
    }
}

@supports (min-height: 100svh) {
    .game-layer {
        min-height: 100svh;
    }
}

/* 顶部提示区域 */
.hint-area {
    flex: 0 0 auto;
    height: clamp(84px, 16vh, 140px);
}

.hint-panel {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
}

.hint-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: clamp(14px, 4vw, 22px);
    border-radius: clamp(16px, 5vw, 24px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.65));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hint-card__title {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 600;
    color: #2c5aa0;
    letter-spacing: 1px;
}

.hint-card__subtitle {
    font-size: clamp(13px, 3.6vw, 16px);
    color: #3d4d41;
    opacity: 0.85;
}

/* 游戏区域 */
.game-area {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), var(--cell-size));
    grid-template-rows: repeat(var(--grid-rows), var(--cell-size));
    gap: var(--cell-gap);
    width: var(--board-width);
    margin: 0 auto;
    padding: clamp(10px, 2vw, 20px);
    background: #F8FCFB;
    border: 2px solid rgba(95, 183, 170, 0.25);
    border-radius: clamp(16px, 4vw, 24px);
    box-shadow: 0 18px 32px rgba(60, 90, 80, 0.12);
    box-sizing: border-box;
}

.hint-tool {
    margin: clamp(18px, 4vw, 28px) 0 clamp(14px, 4vw, 24px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hint-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6dcff6, #4a90e2);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(74, 144, 226, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hint-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(74, 144, 226, 0.3);
}

.hint-button:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px rgba(74, 144, 226, 0.2);
}

.hint-button.empty {
    background: linear-gradient(135deg, #c5d6e6, #9eb4cc);
    box-shadow: 0 10px 18px rgba(158, 180, 204, 0.25);
    animation: hintPulse 1.6s ease-in-out infinite;
}

.hint-button.empty:hover {
    transform: none;
    box-shadow: 0 10px 18px rgba(158, 180, 204, 0.25);
    filter: brightness(1.05);
}

.hint-button:focus-visible {
    outline: 3px solid rgba(74, 144, 226, 0.4);
    outline-offset: 4px;
}

.hint-icon {
    font-size: 15px;
}

.hint-label {
    font-size: 12px;
    letter-spacing: 2px;
}

.hint-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    padding: 3px 5px;
    border-radius: 12px;
    background: #ff6b6b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.25);
}

.hint-button.empty .hint-badge {
    background: #f2a65a;
    box-shadow: 0 6px 12px rgba(242, 166, 90, 0.25);
}

@keyframes hintPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 18px rgba(158, 180, 204, 0.25);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 14px 24px rgba(158, 180, 204, 0.32);
    }
}

@keyframes hintFlash {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(255, 230, 150, 0);
    }
    40% {
        transform: scale(1.06);
        box-shadow: 0 0 0 6px rgba(255, 230, 150, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 230, 150, 0);
    }
}

.game-cell {
    background: #a8e6cf;
    border-radius: clamp(6px, 2vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 2.8vw, 20px);
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    line-height: 1;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    aspect-ratio: 1 / 1;
}

/* 需要填写文字的位置 - 亮绿色背景 */
.game-cell.active {
    background: #88d8a3;
    border: 2px solid #5fb7aa;
    box-shadow: 0 2px 8px rgba(95, 183, 170, 0.3);
}

.game-cell.hint-flash {
    animation: hintFlash 0.85s ease forwards;
    box-shadow: 0 0 0 4px rgba(255, 230, 150, 0.75), 0 0 20px rgba(255, 217, 102, 0.5);
    border-color: #ffd966;
}

/* 不需要填写文字的位置 - 浅灰色背景 */
.game-cell.inactive {
    visibility: hidden;
    pointer-events: none;
}

.game-cell.filled {
    background: #88d8a3;
    color: white;
}

.game-cell.prefilled {
    background: linear-gradient(135deg, #7fd3b1 0%, #5fb7aa 100%);
    color: #fff;
    font-weight: 600;
}

.game-cell.locked {
    cursor: default;
    pointer-events: none;
}

.game-cell.selected {
    background: #4a90e2;
    border-color: #2c5aa0;
    color: white;
}

.game-cell.target {
    background: #ff6b6b;
    border-color: #e55555;
    color: white;
}

/* 字符选择区域 */
.character-area {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vh, 18px) 0;
}

.character-pool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    width: min(100%, var(--board-width));
    margin: 0 auto;
}

.character-row {
    display: flex;
    justify-content: center;
    gap: var(--cell-gap);
    width: 100%;
}

.character-cell {
    background: #9BE6D7;
    border-radius: clamp(8px, 2.4vw, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 4.4vw, 24px);
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    line-height: 1;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    width: var(--character-cell-size);
    height: var(--character-cell-size);
}

.character-cell:active {
    background: #6AD0BC;
}

.character-cell.selected {
    background: #ff6b6b;
    border-color: #e55555;
}

.character-cell.used {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.character-cell.placeholder {
    background: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(74, 144, 226, 0.35);
}

.character-cell.drag-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.character-cell.dragging {
    cursor: grabbing;
    box-shadow: 0 16px 32px rgba(74, 144, 226, 0.25);
    transform: scale(1.03);
    transition: none;
}

.character-cell.collected {
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

@media (hover: hover) and (pointer: fine) {
    .game-cell:hover,
    .character-cell:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* 吉祥物层 */
.mascot-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mascot-height);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 calc(16px + var(--safe-area-right)) calc(6px + var(--safe-area-bottom)) calc(16px + var(--safe-area-left));
    pointer-events: none;
}

.mascot-left,
.mascot-right {
    width: clamp(56px, 16vw, 84px);
    height: clamp(56px, 16vw, 84px);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mascot-left {
    background-image: url('../assets/images/handy.png');
}

.mascot-right {
    background-image: url('../assets/images/talky.png');
}

.mascot-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.decorative-circle {
    width: clamp(32px, 10vw, 48px);
    height: clamp(32px, 10vw, 48px);
    background: rgba(139, 69, 19, 0.3);
    border-radius: 50%;
}

/* 游戏状态显示 */
.game-status {
    position: fixed;
    top: calc(12px + var(--safe-area-top));
    right: calc(12px + var(--safe-area-right));
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: clamp(12px, 2.6vw, 14px);
    font-weight: bold;
    color: #333;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
}

/* 用户信息显示 */
.user-info {
    position: fixed;
    top: calc(12px + var(--safe-area-top));
    left: calc(12px + var(--safe-area-left));
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: bold;
    color: #333;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
}

.user-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    :root {
        --mascot-height: clamp(52px, 18vh, 76px);
        --board-max-width: 360px;
    }

    .top-nav {
        height: calc(56px + var(--safe-area-top));
        padding: var(--safe-area-top) 12px 0;
        padding-left: calc(12px + var(--safe-area-left));
        padding-right: calc(12px + var(--safe-area-right));
    }

    .back-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .nav-title {
        font-size: 16px;
    }

    .level-progress {
        font-size: 12px;
        min-width: 70px;
    }

    .game-layer {
        --layer-padding-x: clamp(14px, 6vw, 22px);
        gap: clamp(6px, 2vw, 12px);
        --board-width: min(94vw, var(--board-max-width));
        --cell-gap: clamp(2px, 1.2vw, 4px);
        --cell-size: calc((var(--board-width) - ((var(--grid-cols) - 1) * var(--cell-gap))) / var(--grid-cols));
        padding: calc(76px + var(--safe-area-top)) var(--layer-padding-x) calc(14px + var(--safe-area-bottom) + var(--mascot-height));
        padding-left: calc(var(--layer-padding-x) + var(--safe-area-left));
        padding-right: calc(var(--layer-padding-x) + var(--safe-area-right));
    }

    .hint-area {
        height: clamp(72px, 18vh, 118px);
    }

    .hint-card {
        gap: 4px;
        padding: clamp(12px, 4.5vw, 18px);
    }

    .game-cell {
        font-size: clamp(14px, 4.2vw, 18px);
    }

    .character-cell {
        font-size: clamp(13px, 3.8vw, 16px);
    }

    .mascot-layer {
        padding: 0 calc(12px + var(--safe-area-right)) calc(6px + var(--safe-area-bottom)) calc(12px + var(--safe-area-left));
    }

    .mascot-left,
    .mascot-right {
        width: clamp(48px, 20vw, 64px);
        height: clamp(48px, 20vw, 64px);
    }

    .decorative-circle {
        width: clamp(28px, 10vw, 36px);
        height: clamp(28px, 10vw, 36px);
    }

    .game-status {
        top: calc(8px + var(--safe-area-top));
        right: calc(10px + var(--safe-area-right));
        padding: 8px 12px;
    }

    .user-info {
        top: calc(8px + var(--safe-area-top));
        left: calc(10px + var(--safe-area-left));
        padding: 7px 12px;
    }
}

@media (max-height: 560px) {
    :root {
        --mascot-height: clamp(48px, 18vh, 64px);
    }

    .game-layer {
        --layer-padding-x: clamp(14px, 4vw, 24px);
        gap: clamp(6px, 1.6vw, 10px);
        --board-width: min(90vw, var(--board-max-width));
        --cell-gap: clamp(2px, 1vw, 4px);
        --cell-size: calc((var(--board-width) - ((var(--grid-cols) - 1) * var(--cell-gap))) / var(--grid-cols));
        padding: calc(10px + var(--safe-area-top)) var(--layer-padding-x) calc(12px + var(--safe-area-bottom) + var(--mascot-height));
        padding-left: calc(var(--layer-padding-x) + var(--safe-area-left));
        padding-right: calc(var(--layer-padding-x) + var(--safe-area-right));
    }

    .hint-area {
        height: clamp(66px, 20vh, 110px);
    }

    .game-cell {
        font-size: clamp(14px, 3vw, 18px);
    }

    .character-cell {
        font-size: clamp(12px, 3.6vw, 16px);
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    :root {
        --mascot-height: clamp(44px, 22vh, 60px);
        --board-max-width: 320px;
    }

    .top-nav {
        height: calc(52px + var(--safe-area-top));
        padding: var(--safe-area-top) 10px 0;
        padding-left: calc(10px + var(--safe-area-left));
        padding-right: calc(10px + var(--safe-area-right));
    }

    .back-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .nav-title {
        font-size: 15px;
    }

    .level-progress {
        font-size: 11px;
        min-width: 60px;
    }

    .game-layer {
        padding: calc(72px + var(--safe-area-top)) var(--layer-padding-x) calc(12px + var(--safe-area-bottom) + var(--mascot-height));
    }

    .game-cell {
        font-size: clamp(13px, 4.8vw, 16px);
    }

    .character-cell {
        font-size: clamp(12px, 4.4vw, 15px);
    }

    .mascot-left,
    .mascot-right {
        width: clamp(40px, 24vw, 52px);
        height: clamp(40px, 24vw, 52px);
    }
}

/* 隐藏加载提示 */
.loading.hidden {
    display: none;
}

/* 通用弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.level-complete-sheet {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 5vh, 48px);
    padding: calc(28px + var(--safe-area-top)) clamp(20px, 6vw, 48px) calc(32px + var(--safe-area-bottom));
    animation: floatIn 0.24s ease;
}

.level-complete-header {
    text-align: center;
}

.level-complete-title {
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 800;
    color: #5fb7aa;
    letter-spacing: 8px;
}

.level-complete-body {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 4vh, 28px);
}

.level-complete-idioms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vh, 18px);
    width: min(100%, 340px);
}

.level-complete-idioms li {
    background: rgba(95, 183, 170, 0.15);
    color: #2f4858;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 24px rgba(95, 183, 170, 0.12);
}

.level-complete-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.level-complete-action {
    flex: 1;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: clamp(16px, 4.2vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
    border: none;
}

.level-complete-share {
    background: transparent;
    color: #5fb7aa;
    border: 2px solid rgba(95, 183, 170, 0.6);
    box-shadow: 0 12px 24px rgba(95, 183, 170, 0.08);
}

.level-complete-share:active {
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(95, 183, 170, 0.16);
    background: rgba(95, 183, 170, 0.1);
}

.level-complete-next {
    background: linear-gradient(135deg, #7fd3b1 0%, #5fb7aa 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(95, 183, 170, 0.35);
}

.level-complete-next:active {
    transform: translateY(2px);
    box-shadow: 0 10px 20px rgba(95, 183, 170, 0.28);
}

@media (min-width: 540px) {
    .level-complete-actions {
        flex-direction: row;
    }
}

@keyframes floatIn {
    from {
        transform: translateY(12px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Handy头像样式 */
.handy-avatar {
    position: fixed;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.handy-avatar:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.handy-avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.handy-avatar-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: bounce 2s infinite;
}

.handy-nickname {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
}
