.gj-main { padding-bottom: 8px; }
.gj-hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; margin-top: 18px; }
@media (max-width: 760px) { .gj-hero { grid-template-columns: 1fr; } }
.gj-kicker { color: #92400e; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin: 6px 0 4px; }
.gj-title { font-size: 44px; line-height: 1.05; margin: 0 0 12px; color: #232048; }
.gj-title span { color: #92400e; }
.gj-rule { font-size: 19px; line-height: 1.45; color: #33305a; margin: 0 0 10px; }
.gj-note { color: #5d5980; line-height: 1.5; margin: 0; }
.gj-console { min-width: 0; background: #fffbeb; border: 1px solid #fde68a; border-radius: 16px; padding: 16px; }
.gj-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; color: #92400e; font-size: 15px; }
.gj-stats strong { color: #232048; }
.gj-reference-wrap { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.gj-reference { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; border: 2px solid #f59e0b; }
.gj-reference svg { display: block; width: 100%; height: 100%; }
.gj-reference-caption { color: #5d5980; font-size: 14px; line-height: 1.45; margin: 0; }
.gj-stage { display: flex; justify-content: center; align-items: center; min-height: 340px; margin: 0 auto 14px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #fef3c7 0%, #fde68a 60%, #fcd34d 100%); overflow: hidden; }
.gj-board { display: grid; grid-template-columns: repeat(3, 100px); grid-template-rows: repeat(3, 100px); gap: 4px; background: #ffffff; padding: 4px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.gj-slot { position: relative; width: 100px; height: 100px; padding: 0; border: 2px dashed #d6a419; border-radius: 4px; background: rgba(146, 64, 14, .06); cursor: pointer; overflow: hidden; }
.gj-slot svg { display: block; width: 100%; height: 100%; }
.gj-slot:disabled { cursor: default; }
.gj-slot:focus-visible { outline: 3px solid #92400e; outline-offset: 2px; }
.gj-slot.gj-filled { border-style: solid; border-color: #92400e; }
.gj-slot.gj-drop { border-color: #166534; background: rgba(22, 101, 52, .18); box-shadow: inset 0 0 0 3px #166534; }
.gj-slot.gj-wrong { animation: gj-shake .3s ease; }
@keyframes gj-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.gj-tray-label { font-weight: 700; color: #92400e; margin: 14px 0 6px; }
.gj-tray { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.gj-piece { width: 64px; height: 64px; padding: 0; border-radius: 8px; border: 2px solid #d6a419; background: #ffffff; cursor: grab; overflow: hidden; touch-action: none; }
.gj-piece svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.gj-piece:disabled { cursor: default; }
.gj-piece:focus-visible { outline: 3px solid #92400e; outline-offset: 2px; }
.gj-piece.gj-selected { border-color: #166534; box-shadow: 0 0 0 3px rgba(22, 101, 52, .35); }
.gj-piece.gj-placed { opacity: .25; }
.gj-drag-clone { position: fixed; z-index: 50; width: 64px; height: 64px; border-radius: 8px; border: 2px solid #166534; background: #ffffff; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); pointer-events: none; overflow: hidden; transform: rotate(-3deg); }
.gj-drag-clone svg { display: block; width: 100%; height: 100%; }
.gj-controls { display: flex; gap: 10px; margin: 14px 0 12px; flex-wrap: wrap; }
.gj-controls button { font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; border: 1px solid #92400e; background: #ffffff; color: #92400e; padding: 10px 18px; }
.gj-controls .gj-primary { background: #92400e; border-color: #92400e; color: #ffffff; }
.gj-controls button:disabled { opacity: .45; cursor: default; }
.gj-status { color: #5d5980; min-height: 24px; margin: 12px 0 0; }
.gj-hint { color: #5d5980; font-size: 14px; margin: 8px 0 0; }
@media (max-width: 760px) { .gj-console { display: flex; flex-direction: column; } .gj-stats { order: 1; } .gj-controls { order: 2; } .gj-reference-wrap { order: 3; } .gj-stage { order: 4; } .gj-tray-label { order: 5; } .gj-tray { order: 6; } .gj-status { order: 7; } .gj-hint { order: 8; } }
@media (max-width: 390px) { .gj-title { font-size: 36px; } .gj-console { padding: 12px; } .gj-stage { min-height: 300px; } .gj-board { grid-template-columns: repeat(3, 88px); grid-template-rows: repeat(3, 88px); } .gj-slot { width: 88px; height: 88px; } .gj-piece { width: 56px; height: 56px; } .gj-stats { font-size: 14px; gap: 12px; } .gj-controls button { padding: 8px 14px; font-size: 15px; } }
@media (max-width: 340px) { .gj-board { grid-template-columns: repeat(3, 80px); grid-template-rows: repeat(3, 80px); } .gj-slot { width: 80px; height: 80px; } }
