/* 基本設定 */
:root {
    --bg-color: #fffc3c;
    --header-bg-color: #ff8e24;
    --text-color: #ffffff;
    --accent-color: #ffd900;
    --icon-size-pc: 56px;
    --icon-size-mobile: 44px;
}

/* 全体のスタイル */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    user-select: none;
}

/* ヘッダー */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0px solid rgb(255, 255, 255);
    z-index: 100;
}

header h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

header p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #ffffff;
}

/* アイコンの表示エリア */
#plaza {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* アイコンのスタイル */
.icon {
    position: absolute;
    font-size: var(--icon-size-mobile);
    line-height: 1;
    cursor: default;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1; /* 他のアイコンの重なり順 */
}

.icon.visible {
    opacity: 1;
}

/* 自分のアイコン */
.icon.me {
    z-index: 10; /* 自分のアイコンを常に最前面に */
}

.icon.me::before {
    content: '😙';
    animation: modern-glow 2.5s infinite ease-in-out;
}

/* 他の人のアイコン */
.icon.other::before {
    content: '😄';
}

@keyframes modern-glow {
    0%, 100% {
        text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
    }
    50% {
        text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    }
}

/* PC用のスタイル調整 */
@media (min-width: 768px) {
    .icon {
        font-size: var(--icon-size-pc);
    }
    header h1 {
        font-size: 1.4rem;
    }
    header p {
        font-size: 1rem;
    }
}
