:root {
color-scheme: light;
--bg: #f4f2eb;
--panel: #fffcf4;
--ink: #1f1d19;
--muted: #6e6759;
--line: #d8d1bf;
--brand: #2f7f60;
--brand-ink: #ffffff;
--danger: #a52222;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "IBM Plex Sans", "Noto Sans KR", sans-serif;
color: var(--ink);
background:
radial-gradient(circle at 15% 10%, #f8d4b3 0, transparent 38%),
radial-gradient(circle at 82% 20%, #d6ebcf 0, transparent 36%),
linear-gradient(120deg, #f4f2eb 0%, #e8e2d4 100%);
min-height: 100vh;
}
.container {
max-width: 980px;
margin: 0 auto;
padding: 32px 16px 48px;
display: grid;
gap: 16px;
}
.hero h1 {
margin: 0;
font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
letter-spacing: -0.02em;
font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}
.hero p {
margin-top: 8px;
color: var(--muted);
}
.card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 14px;
padding: 16px;
box-shadow: 0 10px 18px rgba(25, 20, 10, 0.07);
}
.card h2 {
margin-top: 0;
font-size: 1.1rem;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.grid-form {
display: grid;
gap: 12px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-form label {
display: grid;
gap: 6px;
font-size: 0.92rem;
}
.full-width {
grid-column: 1 / -1;
}
input,
select,
textarea,
button {
font: inherit;
}
input,
select,
textarea {
border: 1px solid var(--line);
background: #fff;
color: var(--ink);
border-radius: 8px;
padding: 9px 10px;
}
textarea {
resize: vertical;
}
button {
border: 0;
border-radius: 8px;
background: var(--brand);
color: var(--brand-ink);
padding: 10px 14px;
cursor: pointer;
font-weight: 600;
}
button:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.robot-list {
display: grid;
gap: 10px;
list-style: none;
margin: 0;
padding: 0;
}
.robot-list li {
display: flex;
gap: 8px;
flex-wrap: wrap;
padding: 10px;
background: #fff;
border: 1px solid var(--line);
border-radius: 8px;
}
.error-box {
background: #ffe8e8;
border: 1px solid #efb4b4;
color: var(--danger);
padding: 12px;
border-radius: 10px;
}
.battle-result {
margin-top: 12px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 10px;
background: #fff;
}
.replay-wrap {
margin-top: 12px;
border: 1px solid var(--line);
border-radius: 10px;
padding: 10px;
background: #fdfbf5;
}
.replay-topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
gap: 8px;
font-size: 0.9rem;
}
.arena-canvas {
width: 100%;
max-width: 560px;
height: auto;
display: block;
border: 1px solid #c9c0af;
border-radius: 8px;
background: #fff;
}
.replay-controls {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.replay-controls button {
min-width: 70px;
}
.replay-caption {
margin-top: 8px;
font-size: 0.86rem;
color: var(--muted);
}
pre {
overflow: auto;
background: #151515;
color: #f8f8f2;
border-radius: 8px;
padding: 12px;
font-size: 0.8rem;
}
code {
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (max-width: 720px) {
.grid-form {
grid-template-columns: 1fr;
}
}