/* 고쳐 쓰기 금광 (/grammar/gerund/miner.jsp, 2026-10-19) — 금광 색 · 문장 줄 · 고칠 말 판 · 단추 · 로비 그림.
   틀 모양은 css/ps2-gerund-arcade.css(.ga-*). 이 파일은 .ga--miner 아래의 .gmi-* 만 정한다. */
#main .gi .ga--miner { --ga-bg1: #1c1408; --ga-bg2: #3d2a0e; --ga-glow: #fbbf24; --ga-halo: rgba(251, 191, 36, .24); --ga-win: #854d0e; --ga-accent: #b45309; --ga-hot: #f59e0b; }

/* 놀이판: 캔버스를 쓸어 화면을 내릴 수 있게(갈고리는 살짝 두드린 때만 나감) */
#main .gi .ga--miner .gmi-stage { position: relative; width: 100%; }
#main .gi .ga--miner .gmi-cv { touch-action: manipulation; background: #25150a; }

/* 문장 줄 */
#main .gi .ga--miner .gmi-ask { font-size: clamp(13.5px, 1.7vw, 15.5px); font-weight: 700; color: rgba(255, 255, 255, .74); }
#main .gi .ga--miner .gmi-sent { margin: 2px 0 0; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.85; font-weight: 700; color: #fff; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
#main .gi .ga--miner .gmi-chip { padding: 1px 6px 2px; margin: 0 1px; border-radius: 8px; background: rgba(251, 191, 36, .15); box-shadow: inset 0 -2px 0 rgba(251, 191, 36, .7); color: #fde68a;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .15s, box-shadow .15s, color .15s; }
#main .gi .ga--miner .gmi-chip i { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; border-radius: 50%; background: #3b2105; color: #fde68a; font-style: normal;
    font-size: 10.5px; font-weight: 800; line-height: 1; vertical-align: 2px; box-shadow: 0 0 0 1px rgba(253, 230, 138, .7); }
#main .gi .ga--miner .gmi-chip b { font-weight: 800; }
#main .gi .ga--miner .gmi-chip.is-aim { background: rgba(253, 224, 71, .36); color: #fff; box-shadow: inset 0 -2px 0 #fde047, 0 0 0 2px rgba(253, 224, 71, .5); }
#main .gi .ga--miner .gmi-chip.is-hold { background: rgba(253, 224, 71, .5); color: #fff; }
#main .gi .ga--miner .gmi-chip.is-found { background: #fde047; color: #3a2004; box-shadow: inset 0 -2px 0 #b45309; }
#main .gi .ga--miner .gmi-chip.is-found i, #main .gi .ga--miner .gmi-chip.is-fixed i, #main .gi .ga--miner .gmi-chip.is-bad i { background: rgba(0, 0, 0, .55); }
#main .gi .ga--miner .gmi-chip.is-fixed { background: #bbf7d0; color: #14532d; box-shadow: inset 0 -2px 0 #16a34a; }
#main .gi .ga--miner .gmi-chip.is-bad { background: #fecaca; color: #7f1d1d; box-shadow: inset 0 -2px 0 #dc2626; }
#main .gi .ga--miner .gmi-chip.is-mine:not(.is-bad) b { text-decoration: line-through; text-decoration-color: #f87171; text-decoration-thickness: 2px; }
#main .gi .ga--miner .gmi-chip.is-good { box-shadow: inset 0 -2px 0 #4ade80; }
#main .gi .ga--miner .gmi-blank { display: inline-block; min-width: 3.2em; padding: 0 8px; border-radius: 8px; border: 1px dashed rgba(253, 230, 138, .7); background: rgba(255, 255, 255, .1); color: #fde68a; text-align: center; }
#main .gi .ga--miner .gmi-blank.is-fixed { background: #bbf7d0; color: #14532d; border-style: solid; border-color: #16a34a; }
#main .gi .ga--miner .gmi-blank.is-bad { background: #fecaca; color: #7f1d1d; border-style: solid; border-color: #dc2626; }

/* 고칠 말 판 (틀린 덩이를 끌어올리면) */
#main .gi .ga--miner .gmi-fix { position: absolute; left: 50%; bottom: 12px; z-index: 4; width: min(620px, calc(100% - 20px)); transform: translateX(-50%); padding: 11px 14px 14px; border-radius: 18px;
    background: rgba(28, 18, 6, .94); border: 2px solid #fbbf24; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 4px rgba(251, 191, 36, .16); color: #fff; animation: gmi-pop .22s ease; }
#main .gi .ga--miner .gmi-fix[hidden] { display: none; }
#main .gi .ga--miner .gmi-fix__head { margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 1.5; text-align: center; }
#main .gi .ga--miner .gmi-fix__tag { display: block; color: #fde047; font-size: 13px; }
#main .gi .ga--miner .gmi-fix__from { color: #fca5a5; text-decoration-thickness: 2px; font-size: 18px; }
#main .gi .ga--miner .gmi-fix__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#main .gi .ga--miner .gmi-fix__opt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 10px; border: 0; border-radius: 14px;
    background: linear-gradient(180deg, #fde68a, #f5c242 55%, #d99a1e); color: #2b1803; font-family: inherit; font-weight: 800; font-size: 17px; line-height: 1.3; cursor: pointer;
    box-shadow: inset 0 -3px 0 rgba(120, 70, 10, .55), 0 6px 14px -6px rgba(0, 0, 0, .6); }
#main .gi .ga--miner .gmi-fix__opt:hover { filter: brightness(1.06); }
#main .gi .ga--miner .gmi-fix__opt:active { transform: translateY(1px) scale(.98); }
#main .gi .ga--miner .gmi-fix__opt:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#main .gi .ga--miner .gmi-fix__opt kbd { display: inline-grid; place-items: center; flex: none; min-width: 22px; height: 22px; border-radius: 6px; background: rgba(43, 24, 3, .85); color: #fde68a; font-size: 12px; font-family: inherit; }
@keyframes gmi-pop { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.97); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }

/* 단추 */
#main .gi .ga--miner .gmi-pad { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; }
#main .gi .ga--miner .gmi-pad--fire { min-width: 168px; background: linear-gradient(180deg, #4a3411, #1c1408); border-color: #1c1408; color: #fde68a; }
#main .gi .ga--miner .gmi-pad--fire.is-release { background: linear-gradient(180deg, #c2410c, #7c2d12); border-color: #7c2d12; color: #fff; }
#main .gi .ga--miner .gmi-pad--cart { flex-direction: row; gap: 8px; min-width: 156px; background: #fffbeb; border-color: #fcd34d; color: #3a2004; }
#main .gi .ga--miner .gmi-pad--cart small { margin: 0 0 0 2px; }
#main .gi .ga--miner .gmi-pad--cart.is-armed { box-shadow: 0 0 0 3px rgba(253, 224, 71, .85); }
#main .gi .ga--miner .gmi-pad:disabled { opacity: .45; cursor: default; transform: none; }
#main .gi .ga--miner .gmi-pad[hidden] { display: none; }
#main .gi .ga--miner .gmi-cartico { width: 26px; height: 20px; flex: none; color: #6b7280; }

/* 로비 그림: 흔들리는 갈고리와 금덩이 */
#main .gi .ga--miner .gmi-hero { position: absolute; inset: 0; overflow: hidden; }
#main .gi .ga--miner .gmi-hero__sky { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(180deg, #0d1a33, #2a3f6c 60%, #d99a5b); }
#main .gi .ga--miner .gmi-hero__ground { position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background: linear-gradient(180deg, #8a5524, #4a2a12 50%, #25150a);
    box-shadow: inset 0 3px 0 #4f6d30; }
#main .gi .ga--miner .gmi-hero__mach { position: absolute; top: calc(34% - 32px); left: calc(50% - 26px); width: 52px; height: 32px;
    background: radial-gradient(circle at 50% 38%, #c8a26b 0 2px, #6b4423 3px 12px, transparent 13px), linear-gradient(#4a2f14, #4a2f14) bottom / 100% 6px no-repeat; }
#main .gi .ga--miner .gmi-hero__rope { position: absolute; top: calc(34% - 4px); left: 50%; width: 2px; height: 48%; margin-left: -1px; background: #eadcb8; transform-origin: 50% 0;
    animation: gmi-swing 3.2s ease-in-out infinite alternate; }
#main .gi .ga--miner .gmi-hero__hook { position: absolute; left: -8px; bottom: -13px; width: 18px; height: 14px; border: 3px solid #d1d5db; border-top: 0; border-radius: 0 0 10px 10px; }
@keyframes gmi-swing { from { transform: rotate(34deg); } to { transform: rotate(-34deg); } }
#main .gi .ga--miner .gmi-hero__nug { position: absolute; padding: 7px 14px; border-radius: 48% 52% 46% 54% / 56% 48% 52% 44%; background: linear-gradient(150deg, #fff2a8, #f5c242 45%, #c47f12);
    color: #3a2004; font-weight: 800; font-size: 14px; line-height: 1.2; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6), inset 0 -2px 0 rgba(110, 62, 8, .4); white-space: nowrap; }
#main .gi .ga--miner .gmi-hero__nug.n1 { left: 7%; top: 50%; }
#main .gi .ga--miner .gmi-hero__nug.n2 { left: 39%; top: 80%; text-decoration: line-through; text-decoration-color: #b91c1c; animation: gmi-glow 1.6s ease-in-out infinite; }
#main .gi .ga--miner .gmi-hero__nug.n3 { right: 6%; top: 54%; }
@keyframes gmi-glow { 50% { box-shadow: 0 0 0 4px rgba(253, 224, 71, .5), 0 0 22px rgba(253, 224, 71, .8); } }
#main .gi .ga--miner .gmi-hero__fix { position: absolute; left: 56%; top: 64%; padding: 3px 11px; border-radius: 999px; background: #bbf7d0; color: #14532d; font-weight: 800; font-size: 13px;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); animation: gmi-float 2.4s ease-in-out infinite; }
#main .gi .ga--miner .gmi-hero__fix::before { content: "→ "; }
@keyframes gmi-float { 50% { transform: translateY(-5px); } }
#main .gi .ga--miner .gmi-hero__cart { position: absolute; right: 7%; top: calc(34% - 22px); width: 46px; height: 20px; background: linear-gradient(#9aa3ad, #3f4651);
    clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }

@media (max-width: 760px) {
    #main .gi .ga--miner .gmi-fix { bottom: 8px; padding: 10px; }
    #main .gi .ga--miner .gmi-fix__opts { grid-template-columns: 1fr; gap: 6px; }
    #main .gi .ga--miner .gmi-fix__opt { min-height: 44px; font-size: 16px; }
    #main .gi .ga--miner .gmi-fix__from { font-size: 16px; }
    #main .gi .ga--miner .gmi-pad--fire, #main .gi .ga--miner .gmi-pad--cart { min-width: 0; }
    #main .gi .ga--miner .gmi-pad { font-size: 15.5px; }
    #main .gi .ga--miner .gmi-hero__nug { font-size: 12.5px; padding: 6px 11px; }
    #main .gi .ga--miner .gmi-hero__fix { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #main .gi .ga--miner .gmi-hero *, #main .gi .ga--miner .gmi-fix { animation: none !important; }
}
