예제 소스
장기로 이해하는 규칙 엔진과 평가 함수 탐색 · 파일 59개
play.module.css
.page {
min-height: 100dvh;
display: flex;
flex-direction: column;
padding: 12px 12px 0;
gap: 12px;
background: radial-gradient(ellipse at top, #3a2718 0%, #2b1d12 60%);
}
.topBar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.brand {
font-family: var(--font-display);
font-size: 28px;
font-weight: 700;
color: var(--accent-strong);
margin: 0;
}
.homeLink {
color: var(--text-muted);
font-size: 13px;
font-weight: 600;
}
.topLinks {
display: flex;
align-items: center;
gap: 12px;
}
.linkBtn {
background: none;
border: none;
color: var(--accent-strong);
font-size: 13px;
font-weight: 600;
cursor: pointer;
padding: 0;
}
.layout {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
flex: 1;
}
@media (min-width: 820px) {
.layout {
grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
align-items: start;
}
}
.side {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
}
.turn {
font-size: 16px;
font-weight: 600;
margin: 0;
}
.check {
font-size: 15px;
font-weight: 700;
color: var(--danger);
margin: 0;
min-height: 1.2em;
}
.score {
margin: 0;
color: var(--text-muted);
font-size: 14px;
}
.section {
margin: 4px 0 0;
font-size: 13px;
color: var(--text-muted);
font-weight: 600;
}
.captured {
margin: 0;
font-size: 14px;
line-height: 1.5;
word-break: keep-all;
}
.history {
list-style: none;
margin: 0;
padding: 8px;
background: #2b1d12;
border: 1px solid var(--border);
border-radius: 8px;
max-height: 180px;
overflow: auto;
font-size: 13px;
}
.history li {
padding: 3px 0;
border-bottom: 1px solid rgba(106, 74, 44, 0.35);
}
.history li:last-child {
border-bottom: none;
}
.actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.btn {
background: #5a3b22;
color: #f8ead0;
border: 1px solid #8a6238;
border-radius: 8px;
padding: 10px 12px;
font-weight: 600;
cursor: pointer;
}
.btn:hover:not(:disabled) {
background: #6b4729;
}
.btn:disabled {
color: #9a8166;
background: #3d2a1b;
cursor: not-allowed;
}
.btnPrimary {
background: #8a4b1f;
color: #f8ead0;
border: 1px solid #8a6238;
border-radius: 8px;
padding: 10px 12px;
font-weight: 600;
cursor: pointer;
grid-column: 1 / -1;
}
.btnPrimary:hover:not(:disabled) {
background: #9a5626;
}
.btnPrimary:disabled {
color: #9a8166;
background: #3d2a1b;
cursor: not-allowed;
}
.thinking {
margin: 0;
font-size: 13px;
color: #e0c08a;
}
.modalBackdrop {
position: fixed;
inset: 0;
background: rgba(12, 8, 4, 0.72);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 40;
}
.modal {
width: min(420px, 100%);
background: #3a2718;
border: 1px solid var(--border);
border-radius: 14px;
padding: 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.modal h2 {
margin: 0;
font-family: var(--font-display);
color: var(--accent-strong);
font-size: 26px;
}
.modal p {
margin: 0;
color: var(--text-muted);
font-size: 14px;
line-height: 1.5;
}
.formRow {
display: flex;
flex-direction: column;
gap: 6px;
}
.formRow label {
font-size: 13px;
color: var(--text-muted);
font-weight: 600;
}
.formRow select,
.formRow input[type="number"] {
background: #2b1d12;
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 12px;
}
.checkRow {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}
.modalActions {
display: flex;
gap: 8px;
margin-top: 4px;
}
.modalActions .btn {
flex: 1;
}
.bannerSlot {
margin-top: auto;
}
.nav {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
border-top: 1px solid var(--border);
background: #24180f;
margin: 0 -12px;
}
.nav a,
.nav span,
.navBtn {
display: flex;
align-items: center;
justify-content: center;
padding: 10px 4px;
font-size: 12px;
color: var(--text-muted);
text-decoration: none;
min-height: 44px;
background: none;
border: none;
cursor: pointer;
font: inherit;
}
.nav .active {
color: var(--accent-strong);
background: rgba(201, 154, 107, 0.12);
}
.reviewRow {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 8px;
align-items: center;
}
.reviewRow:has(.btnPrimary) {
grid-template-columns: 1fr 1fr;
}
.reviewPos {
text-align: center;
font-size: 13px;
color: var(--text-muted);
font-weight: 600;
}
.reviewRow .btnPrimary {
grid-column: auto;
}
.speedSelect {
background: #2b1d12;
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 10px 12px;
font-weight: 600;
}
.modalWide {
width: min(480px, 100%);
max-height: min(80dvh, 720px);
overflow: auto;
background: #3a2718;
border: 1px solid var(--border);
border-radius: 14px;
padding: 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.modalWide h2 {
margin: 0;
font-family: var(--font-display);
color: var(--accent-strong);
font-size: 26px;
}
.modalWide p {
margin: 0;
color: var(--text-muted);
font-size: 14px;
line-height: 1.5;
}
.kiboList {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.kiboCard {
width: 100%;
text-align: left;
background: #2b1d12;
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px;
color: var(--text);
cursor: pointer;
}
.kiboCard:hover {
border-color: #c9894a;
}
.kiboTop {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.kiboCode {
font-weight: 700;
letter-spacing: 0.06em;
}
.badgePlay,
.badgeEnded {
font-size: 11px;
font-weight: 700;
padding: 2px 8px;
border-radius: 999px;
}
.badgePlay {
background: #2f5a3a;
color: #c8f0d4;
}
.badgeEnded {
background: #5a3b22;
color: #f3e2c4;
}
.kiboMeta {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 6px;
font-size: 12px;
color: var(--text-muted);
}
.kiboSummary {
margin: 8px 0 0 !important;
font-size: 13px !important;
color: var(--accent-strong) !important;
}