/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@700&display=swap');

:root {
    --neon-blue: #00f2ff;
    --sushi-red: #ff4b2b;
    --dark-bg: rgba(0, 0, 0, 0.4);
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    font-family: 'Zen Maru Gothic', sans-serif;
    background: #000 url('assets/bg_main.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    overflow: hidden;
}

/* 共通画面設定 */
.screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 100;
}

.screen.active {
    display: flex;
}

/* --- 登録画面のスタイル --- */
.reg-header {
    text-align: center;
}

.title-logo {
    width: 80%;
    max-width: 300px;
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

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

.char-talk-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bubble {
    position: relative;
    background: var(--neon-blue);
    color: #000;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

.bubble::after {
    /* 吹き出しのしっぽ */
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 18px solid var(--neon-blue);
}

.reg-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

input[type="text"] {
    width: 240px;
    padding: 15px;
    border-radius: 15px;
    border: none;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.entry-btn {
    width: 200px;
    padding: 15px;
    background: var(--neon-blue);
    color: #000;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 5px 0 #008c94;
    cursor: pointer;
}

/* --- HOME画面のスタイル --- */
.home-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.name-badge {
    background: var(--dark-bg);
    border: 2px solid var(--neon-blue);
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.stamina-container {
    display: flex;
    gap: 5px;
}

.sushi-slot-img {
    width: 30px;
    height: 30px;
}

.line-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    background: #333;
}

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

.character-preview img {
    max-height: 45vh;
    filter: drop-shadow(0 0 20px var(--neon-blue));
}

.home-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.play-btn {
    width: 280px;
    padding: 20px;
    background: var(--sushi-red);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.6rem;
    font-weight: bold;
    box-shadow: 0 6px 0 #b32d15;
    cursor: pointer;
}

.footer-sub-row {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.sub-btn {
    flex: 1;
    max-width: 135px;
    padding: 12px;
    background: #444;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- 共通コンポーネント --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    color: #333;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    text-align: center;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: none;
}