@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --bg-color: #1a1a1a;
    --panel-bg: #111;
    --text-color: #e0e0e0;
    --primary-color: #00ff99;
    --border-color: #444;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

header { margin-bottom: 2em; }
header h1 { font-family: 'Roboto Mono', monospace; color: var(--primary-color); font-size: 2.5em; margin: 0; }
.subtitle { font-family: 'Noto Sans JP', sans-serif; font-size: 1em; color: #aaa; margin-top: 5px; }

main { width: 100%; max-width: 900px; }

.stream-container {
    display: flex;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 2em;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

/* Scanline effect */
.stream-container::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 100% 3px;
    opacity: 0.5;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

.character-area {
    flex-basis: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.character-area img { max-width: 100px; }

.display-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-color);
    padding-left: 2em;
}

#stream-display {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5em;
    color: var(--primary-color);
    text-align: left;
    width: 100%;
}
.placeholder { color: #666; }

.control-area { margin-top: 2em; }

#catch-button {
    padding: 15px 50px;
    font-size: 1.5em;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
#catch-button:hover { background-color: #33ffaa; }

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Roboto Mono', monospace;
    color: white;
    text-decoration: none;
    margin-left: 1em;
    transition: opacity 0.5s;
    vertical-align: middle; /* ボタンとの、縦位置を、揃える */
}
.share-btn.hidden { opacity: 0; pointer-events: none; }

#share-button-x { background-color: #14171A; } /* X (Twitter) Black */
#share-button-taittsu { background-color: #71C3E8; } /* Taittsu Blue */

footer { position: absolute; bottom: 10px; font-family: 'Roboto Mono', monospace; font-size: 0.8em; color: #888; }

@keyframes scanline {
    from { background-position-y: 0; }
    to { background-position-y: 100%; }
}