/* 基本設定 */
body {
    background: #0f172a;
    color: #f8fafc;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0; padding: 0;
    display: flex; justify-content: center;
}

.container {
    width: 100%; max-width: 900px;
    padding: 20px; display: flex; flex-direction: column; align-items: center;
}

.header-ui { text-align: center; margin-bottom: 20px; }
.header-ui h1 { font-family: 'Anton', sans-serif; margin: 0; color: #38bdf8; }

/* プレビューエリア */
.preview {
    width: 100%; aspect-ratio: 1 / 1;
    max-width: 500px; position: relative;
    overflow: hidden; background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}

@media (min-width: 800px) {
    .container { flex-direction: row-reverse; gap: 40px; align-items: flex-start; margin-top: 50px; }
}

.bg-layer {
    position: absolute; width: 100%; height: 100%;
    background-size: cover; background-position: center;
}

.overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.match-label { font-family: 'Anton', sans-serif; letter-spacing: 4px; font-size: 1.2rem; color: #38bdf8; }

.scoreboard { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.team-block { text-align: center; width: 180px; }

/* チーム名のフォントを統一 */
.t-name { 
    font-family: 'Anton', sans-serif; 
    font-size: 1.6rem; /* 少し大きくしました */
    white-space: nowrap; 
    overflow: hidden; 
    color: white;
    text-transform: uppercase; /* 大文字で統一してカッコよく */
}

.s-num { font-family: 'Orbitron', sans-serif; font-size: 6.5rem; line-height: 1; color: #fbbf24; }
.vs-divider { font-family: 'Anton', sans-serif; font-size: 1.5rem; margin-top: 25px; color: #94a3b8; }

/* メッセージ部分のフォントも Anton で統一してさらに強調 */
.sub-msg {
    margin-top: 15px; 
    background: #fbbf24; 
    color: #000;
    font-family: 'Anton', sans-serif; /* ここも Anton を適用 */
    padding: 8px 25px;
    font-size: 1.8rem; /* メッセージをより目立たせる */
    transform: rotate(-2deg); 
    text-shadow: none;
    letter-spacing: 1px;
}

/* 入力パネル設定 */
.editor-panel { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 15px; }
.flex-row { display: flex; gap: 10px; }
.form-item { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.form-item label { font-size: 0.8rem; font-weight: bold; color: #94a3b8; }

input {
    background: #1e293b; border: 1px solid #334155; color: white;
    padding: 12px; border-radius: 8px; font-size: 1rem;
}

button {
    background: linear-gradient(135deg, #38bdf8, #1d4ed8);
    color: white; border: none; padding: 18px;
    border-radius: 12px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; margin-top: 10px; transition: 0.2s;
}
button:active { transform: scale(0.98); }