html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #000; overflow: hidden;
    font-family: 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; overscroll-behavior: none; }
#app { width: 100%; height: 100%; }
.cob-boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, #3a2a12 0%, #0b0806 70%); color: #ffd35a; }
.cob-boot-title { font-size: 2em; font-weight: 800; letter-spacing: 0.08em; text-shadow: 3px 3px 0 #b3321f; }
.cob-boot-sub { margin-top: 1em; color: #d8c6a0; }

.cob-gate { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, #3a2a12 0%, #0b0806 75%); padding: 16px; box-sizing: border-box; }
.cob-card { width: min(360px, 100%); background: #fff8e6; border: 4px solid #f39a1e; border-radius: 16px; padding: 20px 22px;
    box-shadow: 0 8px 0 #b3621a, 0 16px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.cob-card h1 { margin: 0; text-align: center; color: #e2531b; font-size: 1.6em; letter-spacing: .06em; text-shadow: 2px 2px 0 #ffd35a; }
.cob-logo { max-width: 70%; margin: 0 auto; }
.cob-sub { text-align: center; color: #8a5a20; margin-bottom: 8px; font-weight: 600; }
.cob-card label { color: #6b4312; font-size: .9em; font-weight: 600; margin-top: 4px; }
.cob-card input { font-size: 1em; padding: 10px 12px; border: 2px solid #e8b56b; border-radius: 10px; background: #fff; outline: none; }
.cob-card input:focus { border-color: #f39a1e; }
.cob-card button { margin-top: 12px; font-size: 1.15em; font-weight: 800; padding: 12px; border: 0; border-radius: 12px; color: #fff;
    background: linear-gradient(#ff8a2a, #e2531b); box-shadow: 0 4px 0 #9c3a12; cursor: pointer; }
.cob-card button:disabled { opacity: .6; cursor: default; }
.cob-error { color: #c0261a; font-weight: 600; font-size: .9em; }
.cob-help { margin-top: 10px; color: #8a6a3a; font-size: .78em; text-align: center; line-height: 1.5; }
.cob-notice { color: #9f8b6a; font-size: .72em; margin-top: 14px; text-align: center; max-width: 480px; }

.cob-holder { position: fixed; inset: 0; background: #000; }
#theCanvas { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }

#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* in-game text input (TouchScreenKeyboard) */
#cobKeyboard { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center;
    padding-top: 8vh; background: rgba(0,0,0,.45); }
#cobKeyboard form { background: #fff8e6; border: 3px solid #ff9a1f; border-radius: 16px; padding: 14px 16px; width: min(360px, 86vw);
    box-shadow: 0 6px 24px rgba(0,0,0,.35); font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; }
#cobKeyboard .t { font-weight: 700; color: #6b3a00; margin-bottom: 8px; }
#cobKeyboard input { width: 100%; box-sizing: border-box; font-size: 20px; padding: 8px 10px; border: 2px solid #f0b060; border-radius: 10px; }
#cobKeyboard .h { font-size: 12px; color: #8a6a40; margin: 6px 0 10px; min-height: 1em; }
#cobKeyboard .b { display: flex; gap: 8px; justify-content: flex-end; }
#cobKeyboard button { font-size: 16px; font-weight: 700; padding: 7px 18px; border-radius: 18px; border: 0; background: #ff9a1f; color: #fff; }
#cobKeyboard button.c { background: #9aa4b0; }

/* login: adult mode option */
.cob-adult { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.cob-adult input { width: 18px; height: 18px; margin: 0; }
.cob-adult span { color: #8a7a6a; font-size: 12px; }
