/* Tesla's klaverjassen — the card room (wwwroot/3d/klaverjas-room.js). Green felt, walnut and brass; the HUD in the same tones. */
body.zkj-active footer, body.zkj-active #sc-robot, body.zkj-active .zassist-fab { display: none !important; }
#zkj { position: relative; width: 100%; height: calc(100vh - 92px); height: calc(100dvh - 92px); min-height: 440px; overflow: hidden;
    border-radius: 14px; border: 1px solid rgba(201, 162, 74, .45); background: #05080a; touch-action: none; user-select: none; -webkit-user-select: none;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #f4ecd6; }
/* maximized: the browser's full screen, or (where an element can't go full screen, e.g. iPhone) the room fixed over the whole page */
#zkj:fullscreen { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
#zkj.zkj-max { position: fixed; inset: 0; z-index: 2000; width: auto; height: auto; min-height: 0; border-radius: 0; border: 0; }
body.zkj-maxed { overflow: hidden; }
#zkj-btn-max { display: inline-flex; align-items: center; justify-content: center; padding: 5px 11px !important; }
#zkj-btn-max svg { display: block; }
#zkj-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

#zkj-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 45%, #0e2a20, #040706 70%); z-index: 6; font-weight: 600; letter-spacing: .02em; }
.zkj-spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(201, 162, 74, .25); border-top-color: #e2c068; animation: zkjspin 1s linear infinite; }
@keyframes zkjspin { to { transform: rotate(360deg); } }

.zkj-header { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 4; pointer-events: none; }   /* the buttons, then the trump bar on its own row: never on top of each other */
.zkj-top { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; pointer-events: none; }
.zkj-top > * { pointer-events: auto; }
.zkj-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.15rem; color: #e9cf86; text-shadow: 0 0 10px rgba(226, 190, 104, .45); }
.zkj-score { padding: 4px 14px; border-radius: 999px; background: rgba(6, 30, 22, .78); border: 1px solid rgba(201, 162, 74, .55); font-weight: 600; }
.zkj-score b { font-size: 1.15rem; color: #fff6dc; min-width: 2.2em; display: inline-block; text-align: center; }
.zkj-sep { opacity: .55; }
.zkj-to { font-size: .85rem; color: rgba(244, 236, 214, .85); padding: 3px 14px; border-radius: 999px; background: rgba(4, 18, 14, .7); border: 1px solid rgba(201, 162, 74, .3); pointer-events: auto; }   /* under the buttons, where the trump bar was */
.zkj-btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
#zkj button { font: inherit; font-size: .88rem; color: #f4ecd6; background: rgba(10, 34, 26, .82); border: 1px solid rgba(201, 162, 74, .5); border-radius: 999px; padding: 5px 13px; cursor: pointer; transition: background .15s, transform .1s; }
#zkj button:hover { background: rgba(26, 70, 52, .92); }
#zkj button:active { transform: translateY(1px); }
#zkj button.zkj-hot { background: linear-gradient(#d9b25a, #a8822e); color: #1a1205; border-color: #f2d68e; font-weight: 700; }
#zkj button.zkj-suitbtn { font-size: 1rem; padding: 7px 16px; }

#zkj-info { position: relative; flex: 1 1 320px; max-width: 760px; min-width: 0; padding: 4px 14px; border-radius: 12px; background: rgba(4, 18, 14, .78); border: 1px solid rgba(201, 162, 74, .4); font-size: .86rem; text-align: center; pointer-events: auto; }   /* in the top row, right after the score */
#zkj-info[hidden] { display: none; }
#zkj .kr { color: #ff8c6b; font-weight: 700; }
.zkj-s { font-size: 1.15em; }
.zkj-s.red, .zkj-mini.red { color: #ff5a6e; }
/* the four-colour deck: klaveren green, ruiten blue, harten red, schoppen black (light on the dark bars, deep on the white mini cards) */
.zkj-s.sc0 { color: #4fd38a; } .zkj-s.sc1 { color: #6aa8ff; } .zkj-s.sc2 { color: #ff5a6e; }
.zkj-mini.sc0 { color: #167a3c; } .zkj-mini.sc1 { color: #1a5ccc; } .zkj-mini.sc2 { color: #c8102e; } .zkj-mini.sc3 { color: #16181c; }

.zkj-bottom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 3; width: min(720px, calc(100% - 24px)); pointer-events: none; }
.zkj-bottom > * { pointer-events: auto; }
#zkj-msg { padding: 7px 16px; border-radius: 12px; background: rgba(4, 18, 14, .8); border: 1px solid rgba(201, 162, 74, .35); text-align: center; font-size: .95rem; min-height: 1.6em; }
#zkj-msg:empty { display: none; }
#zkj-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#zkj-tip { position: absolute; right: -4px; bottom: 0; transform: translateX(100%); }
@media (max-width: 760px) { #zkj-tip { position: static; transform: none; } }

.zkj-bubble { position: absolute; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 14px; background: rgba(250, 244, 226, .95); color: #1a1205; font-weight: 600; font-size: .92rem; white-space: nowrap; z-index: 4; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.zkj-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: rgba(250, 244, 226, .95); border-bottom: 0; }
.zkj-bubble .red { color: #c8102e; }
.zkj-bubble.pop { animation: zkjpop .28s ease-out; }
@keyframes zkjpop { from { transform: translate(-50%, -80%) scale(.7); opacity: 0; } to { transform: translate(-50%, -100%) scale(1); opacity: 1; } }

.zkj-panel { position: absolute; top: var(--zkj-head, 54px); right: 12px; width: min(440px, calc(100% - 24px)); max-height: calc(100% - var(--zkj-head, 54px) - 80px); overflow: auto; z-index: 5; padding: 12px 14px; border-radius: 14px; background: rgba(5, 22, 17, .94); border: 1px solid rgba(201, 162, 74, .5); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.zkj-panel--small { width: min(360px, calc(100% - 24px)); }
.zkj-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #e9cf86; font-family: Georgia, serif; }
#zkj .zkj-panel__head button { padding: 2px 9px; }
.zkj-panel table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.zkj-panel th, .zkj-panel td { padding: 4px 6px; border-bottom: 1px solid rgba(201, 162, 74, .18); text-align: left; }
.zkj-panel tfoot td { font-weight: 700; color: #fff6dc; border-top: 1px solid rgba(201, 162, 74, .5); }
.zkj-panel ul { padding-left: 18px; margin: 0; font-size: .9rem; line-height: 1.45; }
.zkj-panel li { margin-bottom: 5px; }
.zkj-note { margin: 8px 0 0; opacity: .7; font-size: .85rem; }
.zkj-mini { display: inline-block; margin: 3px; padding: 4px 8px; border-radius: 6px; background: #f8f3e5; color: #16181c; font-weight: 700; }

#zkj .roem { color: #ffd36b; font-weight: 700; }
#zkj-trick { position: absolute; left: 12px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 12px; background: rgba(4, 18, 14, .82); border: 1px solid rgba(201, 162, 74, .45); }
#zkj-trick .lbl { font-size: .8rem; opacity: .75; margin-right: 4px; }
#zkj-trick .zkj-mini { font-size: 1.05rem; padding: 5px 9px; }
#zkj-trick .zkj-mini small { font-size: .7rem; opacity: .6; margin-right: 1px; }
#zkj-trick .zkj-mini.win { box-shadow: 0 0 0 2px #e2c068, 0 0 12px rgba(226, 192, 104, .7); }
.zkj-panel tr.now td { font-style: italic; color: #ffe9a8; }
@media (max-width: 980px) { #zkj-trick { bottom: auto; top: var(--zkj-head, 92px); left: 12px; } }   /* narrow: under the header, clear of the message line */

.zkj-stations { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
#zkj .zkj-stations button { border-radius: 10px; padding: 7px 10px; text-align: left; }
#zkj .zkj-stations button.on { background: linear-gradient(#d9b25a, #a8822e); color: #1a1205; border-color: #f2d68e; font-weight: 700; }
.zkj-vol { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.zkj-vol input { flex: 1; accent-color: #d9b25a; }

.zkj-panel { z-index: 6; }
.zkj-modal { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); }
.zkj-modal[hidden] { display: none; }
.zkj-modal__box { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; padding: 16px 18px; border-radius: 16px; background: rgba(5, 22, 17, .97); border: 1px solid rgba(201, 162, 74, .6); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.zkj-modal__box h3 { margin: 0 0 10px; font-family: Georgia, serif; color: #e9cf86; font-size: 1.2rem; }
.zkj-modal__box table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.zkj-modal__box th, .zkj-modal__box td { padding: 6px 6px; border-bottom: 1px solid rgba(201, 162, 74, .2); text-align: left; vertical-align: top; }
.zkj-modal__box tr.win td { color: #fff6dc; background: rgba(217, 178, 90, .16); font-weight: 600; }
.zkj-run { display: inline-block; margin: 0 6px 2px 0; }
.zkj-roem-why { margin: 10px 0 4px; opacity: .9; }
.zkj-roem-res { margin: 0 0 6px; }
.zkj-modal__foot { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---- VIP: the chip in the header, the login popup, the admin list (2.312.0) ---- */
.zkj-vip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 11px; border-radius: 999px; font-size: .85rem; letter-spacing: .03em;
    color: #1a1205; background: linear-gradient(#f2d68e, #c9a24a); border: 1px solid #f7e3a6; box-shadow: 0 0 12px rgba(226, 190, 104, .35); }
.zkj-vip[hidden] { display: none; }
#zkj .zkj-vip button { padding: 0 7px; font-size: .85rem; line-height: 1.4; color: #1a1205; background: rgba(255, 255, 255, .35); border-color: rgba(26, 18, 5, .25); }
.zkj-vipbox { width: min(430px, calc(100% - 24px)); text-align: left; }
.zkj-vipbox__crest { text-align: center; font-size: 1.1rem; letter-spacing: .5em; color: #e9cf86; opacity: .8; margin-bottom: 2px; }
.zkj-vipbox h3 { text-align: center; }
.zkj-vipbox p { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; opacity: .9; }
.zkj-vipbox label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #e9cf86; margin-bottom: 5px; }
.zkj-vipbox input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.05rem; padding: 9px 12px; border-radius: 10px; color: #fff6dc;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(201, 162, 74, .55); outline: none; user-select: text; -webkit-user-select: text; }
.zkj-vipbox input:focus { border-color: #f2d68e; box-shadow: 0 0 0 3px rgba(226, 190, 104, .25); }
.zkj-vipbox__err { color: #ffb4a8 !important; margin: 8px 0 0 !important; font-size: .88rem !important; }
.zkj-modal__foot { gap: 8px; }
.zkj-admin { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(201, 162, 74, .35); }
.zkj-admin__head { font-family: Georgia, serif; color: #e9cf86; margin-bottom: 4px; }
.zkj-admin__add { display: flex; gap: 6px; margin: 8px 0; }
.zkj-admin__add input { flex: 1; min-width: 0; font: inherit; padding: 5px 10px; border-radius: 999px; color: #fff6dc; background: rgba(0, 0, 0, .35); border: 1px solid rgba(201, 162, 74, .5); user-select: text; -webkit-user-select: text; }
#zkj-vip-list { list-style: none; padding: 0; margin: 0; max-height: 180px; overflow: auto; }
#zkj-vip-list li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px solid rgba(201, 162, 74, .15); }
#zkj-vip-list li span { flex: 1; }
#zkj-vip-list li small { opacity: .6; }
#zkj #zkj-vip-list button { padding: 0 8px; }

/* ---- drawing for the lead: a light popup, the drawn cards stay visible on the table ---- */
.zkj-modal--clear { background: transparent; pointer-events: none; }
.zkj-modal--clear .zkj-modal__box { pointer-events: auto; }
#zkj-draw { align-items: flex-end; padding-bottom: 14px; }                 /* under the drawn cards, so they stay in view */
.zkj-drawbox { width: min(560px, calc(100% - 24px)); background: rgba(5, 22, 17, .92); padding: 12px 16px; text-align: center; }
.zkj-drawbox h3 { margin-bottom: 8px !important; font-size: 1.05rem !important; }
.zkj-drawchips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.zkj-drawchip { display: inline-flex; flex-direction: column; align-items: center; min-width: 84px; padding: 4px 10px; border-radius: 10px; border: 1px solid rgba(201, 162, 74, .3); background: rgba(0, 0, 0, .25); }
.zkj-drawchip small { opacity: .7; font-size: .75rem; }
.zkj-drawchip b { font-size: 1rem; }
.zkj-drawchip.win { border-color: #f2d68e; background: rgba(217, 178, 90, .22); box-shadow: 0 0 12px rgba(226, 190, 104, .35); }
.zkj-drawbox .zkj-modal__foot { justify-content: center; }
.zkj-drawbox p { margin: 8px 0 0; font-size: .92rem; }
.zkj-drawbox__q { text-align: center; font-family: Georgia, serif; font-size: 1.2rem !important; color: #fff6dc; margin-top: 6px !important; }

/* ---- the language picker inside the room (the site's own menu, in the room's colours) ---- */
#zkj .zkj-lang .zlang-dd__btn { height: auto; padding: 4px 10px; background: rgba(10, 34, 26, .82); border: 1px solid rgba(201, 162, 74, .5); color: #f4ecd6; }
#zkj .zkj-lang .zlang-dd__menu { background: #06170f; border-color: rgba(201, 162, 74, .55); }
#zkj .zkj-lang .zlang-dd__opt { display: flex; width: 100%; border: 0; border-radius: 8px; background: transparent; padding: .42rem .6rem; color: #f4ecd6; -webkit-text-fill-color: #f4ecd6; }
#zkj .zkj-lang .zlang-dd__opt:hover { background: rgba(26, 70, 52, .92); }
#zkj .zkj-lang .zlang-dd__opt.is-cur { background: rgba(217, 178, 90, .25); font-weight: 700; }

/* ---- the handbook (Rules): a book over the room — chapters left, text right; on a phone the chapters scroll across the top ---- */
.zkj-book { position: absolute; top: var(--zkj-head, 54px); left: 12px; right: 12px; bottom: 12px; z-index: 9; display: flex; flex-direction: column;
    border-radius: 16px; background: #05140f; border: 1px solid rgba(201, 162, 74, .6); box-shadow: 0 22px 60px rgba(0, 0, 0, .6);
    user-select: text; -webkit-user-select: text; overflow: hidden; }
.zkj-book[hidden] { display: none; }
.zkj-book__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(201, 162, 74, .35);
    background: linear-gradient(rgba(201, 162, 74, .12), transparent); }
.zkj-book__head strong { font-family: Georgia, serif; font-size: 1.25rem; color: #e9cf86; margin-right: 10px; }
.zkj-book__head small { opacity: .65; font-size: .82rem; }
.zkj-book__wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px 1fr; }
.zkj-book__nav { overflow-y: auto; padding: 10px 8px; border-right: 1px solid rgba(201, 162, 74, .25); background: rgba(0, 0, 0, .18); }
.zkj-book__nav ol { list-style: none; margin: 0; padding: 0; }
#zkj .zkj-book__nav button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 7px 10px; background: transparent; font-size: .9rem; color: #e8e0c8; }
#zkj .zkj-book__nav button:hover { background: rgba(26, 70, 52, .7); }
#zkj .zkj-book__nav button.is-cur { background: rgba(217, 178, 90, .2); color: #fff6dc; font-weight: 600; }
.zkj-book__no { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; font-weight: 700;
    color: #1a1205; background: linear-gradient(#f2d68e, #c9a24a); flex: none; }
.zkj-book__body { overflow-y: auto; padding: 6px 26px 40px; outline: none; font-size: .95rem; line-height: 1.6; color: #efe7d0; scroll-behavior: smooth; }
.zkj-book__body section { padding: 18px 0 8px; border-bottom: 1px solid rgba(201, 162, 74, .18); max-width: 780px; }
.zkj-book__body section:last-child { border-bottom: 0; }
.zkj-book__body h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.35rem; color: #e9cf86; }
.zkj-book__body h2 .zkj-book__no { min-width: 28px; height: 28px; font-size: .85rem; }
.zkj-book__body h3 { margin: 18px 0 6px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #d9c08a; }
.zkj-book__body p { margin: 0 0 10px; }
.zkj-book__body ul, .zkj-book__body ol { margin: 0 0 12px; padding-left: 22px; }
.zkj-book__body li { margin-bottom: 6px; }
.zkj-book__body b { color: #fff6dc; }
.zkj-book__body a { color: #f2d68e; }
.zkj-book__lead { font-size: 1.05rem; color: #fff6dc; }
.zkj-book__steps li::marker { color: #e9cf86; font-weight: 700; }
.zkj-book__rules li b { display: block; }
.zkj-book__card { margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: rgba(217, 178, 90, .08); border: 1px solid rgba(217, 178, 90, .3); }
.zkj-book__card--note { background: rgba(110, 170, 255, .07); border-color: rgba(140, 180, 255, .3); }
.zkj-book__cardhead { font-weight: 700; color: #f2d68e; margin-bottom: 6px; }
.zkj-book__card ul { margin-bottom: 0; }
.zkj-book__card p { margin: 0; }
.zkj-book__table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .92rem; }
.zkj-book__table caption { text-align: left; font-weight: 700; color: #e9cf86; padding-bottom: 4px; }
.zkj-book__table th { text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #d9c08a; border-bottom: 1px solid rgba(201, 162, 74, .5); padding: 6px 8px; }
.zkj-book__table td { padding: 6px 8px; border-bottom: 1px solid rgba(201, 162, 74, .14); vertical-align: top; }
.zkj-book__table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.zkj-book__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.zkj-book__gloss { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.zkj-book__gloss dt { font-weight: 700; color: #f2d68e; }
.zkj-book__gloss dd { margin: 0; }
.zkj-book__changes { list-style: none; padding: 0 !important; }
.zkj-book__changes li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(201, 162, 74, .14); }
.zkj-book__ver { font-variant-numeric: tabular-nums; color: #d9c08a; font-size: .85rem; padding-top: 2px; }
@media (max-width: 760px) {
    .zkj-book { left: 6px; right: 6px; bottom: 6px; }
    .zkj-book__wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .zkj-book__nav { border-right: 0; border-bottom: 1px solid rgba(201, 162, 74, .25); overflow-x: auto; overflow-y: hidden; padding: 6px; }
    .zkj-book__nav ol { display: flex; gap: 4px; }
    #zkj .zkj-book__nav button { white-space: nowrap; width: auto; }
    .zkj-book__body { padding: 4px 14px 30px; }
    .zkj-book__cols { grid-template-columns: 1fr; gap: 0; }
    .zkj-book__changes li { grid-template-columns: 1fr; gap: 2px; }
    .zkj-book__gloss { grid-template-columns: 1fr; }
    .zkj-book__gloss dd { margin-bottom: 6px; }
}
@media (max-width: 560px) {
    #zkj-draw { padding-bottom: 8px; }
    .zkj-drawbox { padding: 8px 10px; }
    .zkj-drawbox h3 { display: none; }
    .zkj-drawchips { flex-wrap: nowrap; gap: 4px; }
    .zkj-drawchip { flex: 1; min-width: 0; padding: 3px 4px; }
    .zkj-drawchip small { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .zkj-drawbox p { font-size: .82rem; margin-top: 5px; }
    .zkj-drawbox__q { font-size: 1.05rem !important; margin-top: 3px !important; }
}
/* the site paints headings with a text fill (gradient text): give the book's own colours back */
.zkj-book__body h2, .zkj-book__body h3, .zkj-book__head strong { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; text-shadow: none; }
.zkj-book__no { -webkit-text-fill-color: #1a1205; }

/* ---- every game window in one style: a deep-green card in a double gilt frame, the four suits above the title, a gold rule
   under it, the room dimmed and softened behind, a short rise when it opens (roem, draw for the lead, VIP, questions) ---- */
.zkj-modal { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .62)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.zkj-modal--clear { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.zkj-modal__box { position: relative; padding: 18px 22px 16px; border-radius: 18px;
    background: radial-gradient(ellipse at 50% 0%, rgba(38, 92, 70, .55), transparent 62%), linear-gradient(180deg, #0b2a20, #061811 70%, #04110c);
    border: 1px solid rgba(226, 190, 104, .75);
    box-shadow: 0 0 0 4px rgba(4, 17, 12, .9), 0 0 0 5px rgba(201, 162, 74, .45), 0 24px 60px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 236, 190, .18);
    animation: zkjRise .22s ease-out; }
.zkj-modal__box::after { content: ''; position: absolute; inset: 7px; border-radius: 13px; border: 1px solid rgba(226, 190, 104, .16); pointer-events: none; }
@keyframes zkjRise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.zkj-modal__crest { text-align: center; font-size: 1rem; letter-spacing: .55em; padding-left: .55em; color: #e9cf86; opacity: .85; margin-bottom: 2px; text-shadow: 0 0 8px rgba(226, 190, 104, .35); }
.zkj-modal__box h3 { text-align: center; margin: 0 0 12px !important; padding-bottom: 9px; letter-spacing: .02em;
    background: linear-gradient(90deg, transparent, rgba(226, 190, 104, .7), transparent) bottom / 70% 1px no-repeat; }
.zkj-modal__foot { justify-content: center !important; gap: 10px; margin-top: 14px !important; }
.zkj-modal__foot button { min-width: 120px; padding: 7px 18px !important; }
.zkj-askbox { width: min(440px, calc(100% - 24px)); text-align: center; }
#zkj-ask-text { font-size: .96rem; line-height: 1.55; color: #efe7d0; }
#zkj-ask-text b { color: #fff6dc; }
.zkj-vipbox__crest { display: none; }
@media (max-width: 560px) { .zkj-drawbox .zkj-modal__crest { display: none; } .zkj-drawbox h3 { background: none; } }
/* the target and hand number: on the left, under the Lumazel button (wide screens: on the button row, which leaves that corner free) */
.zkj-to { align-self: flex-start; }
@media (min-width: 981px) { .zkj-to { position: absolute; left: 0; top: 46px; } }

/* ---- the buttons along the bottom line (owner, 2.314.5): spread over the full width; everything that lived at the bottom (the
   cards on the table, the message and its choices, the Tip, the draw window) stands just above them (--zkj-dock, measured) ---- */
.zkj-dock { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 4; margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px;
    padding: 6px 8px; border-radius: 16px; background: linear-gradient(180deg, rgba(4, 18, 14, .55), rgba(4, 18, 14, .78)); border: 1px solid rgba(201, 162, 74, .28); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.zkj-dock > * { pointer-events: auto; }
.zkj-bottom { bottom: var(--zkj-dock, 62px); }
@media (min-width: 981px) { #zkj-trick { bottom: calc(var(--zkj-dock, 62px) + 74px); } }   /* above the message line (never under it); narrow screens keep it under the header */
#zkj-draw { padding-bottom: var(--zkj-dock, 62px); }
@media (max-width: 760px) { .zkj-dock { justify-content: center; left: 6px; right: 6px; bottom: 6px; padding: 5px; } }

/* the VIP login: solid gold that shimmers, a glow that pulses like a beacon and a gleam that sweeps across it now and then */
#zkj button.zkj-vipbtn { position: relative; overflow: hidden; isolation: isolate; color: #2a1a02; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(120deg, #8a6418 0%, #f6dc8a 28%, #d4a63a 50%, #fff1b8 68%, #b8892c 100%); background-size: 220% 100%;
  border: 1px solid #ffe39a; text-shadow: 0 1px 0 rgba(255, 244, 200, .65);
  animation: zkjVipGlow 1.4s ease-in-out infinite, zkjVipShift 5s linear infinite; }
#zkj button.zkj-vipbtn::after { content: ''; position: absolute; z-index: -1; top: -60%; left: -70%; width: 45%; height: 220%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); transform: skewX(-22deg);
  animation: zkjVipShine 2.8s ease-in-out infinite; }
#zkj button.zkj-vipbtn:hover { filter: brightness(1.12); }
@keyframes zkjVipGlow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(255, 205, 90, .55), inset 0 0 0 1px rgba(255, 236, 160, .55); }
  50% { box-shadow: 0 0 16px 5px rgba(255, 200, 70, .95), 0 0 34px 12px rgba(255, 176, 40, .4), inset 0 0 0 1px rgba(255, 248, 210, .95); }
}
@keyframes zkjVipShine { 0% { left: -70%; } 55%, 100% { left: 135%; } }
@keyframes zkjVipShift { from { background-position: 0% 0; } to { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) {
  #zkj button.zkj-vipbtn { animation: none; box-shadow: 0 0 12px 3px rgba(255, 200, 70, .7); }
  #zkj button.zkj-vipbtn::after { animation: none; display: none; }
}
