.mothergameholder{
background: #0d2016;
overscroll-behavior: none;
-webkit-user-select: none; /* Safari */
-ms-user-select: none; /* IE 10 and IE 11 */
user-select: none; /* Standard syntax */
-webkit-touch-callout: none;
-webkit-user-callout: none;
}
.mothergameholder * {
touch-action: manipulation; /* kills the double-tap magnifier/zoom behavior */
}
canvas {
display: block;
cursor: grab;
touch-action: none;
-webkit-user-select: none !important;
user-select: none !important;
-webkit-touch-callout: none !important;
-webkit-user-drag: none !important;
}
canvas:active {
cursor: grabbing;
}

/* ── vignette overlay ── */
#vignette {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 1;
background: radial-gradient(
ellipse at 50% 60%,
transparent 30%,
rgba(0, 8, 4, 0.55) 100%
);
}

/* ── watermark ── */
#watermark {
position: absolute;
bottom: 16px;
left: 18px;
z-index: 10;
font:
400 13px "Courier New",
monospace;
color: rgba(255, 255, 255, 0.11);
user-select: none;
letter-spacing: 1.2px;
text-transform: uppercase;
transition: color 350ms ease;
cursor: pointer;
display:none;
}
#watermark .big {
font-size: 15.5px; /* slightly taller */
font-weight: 500;
vertical-align: baseline;
}

#watermark:hover {
color: rgba(255, 255, 255, 0.28);
}

#performanceStats {
position: absolute;
bottom: 0;
right: 0;
z-index: 150;
/*display: flex;*/
display:none;
cursor: pointer;
transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
#performanceStats.minimized {
transform: translate(100%, 100%); /* leaves just the top bar visible */
}
#performanceStats.minimized::before {
content: "▦";
position: absolute;
top: -32px;
left: -32px;
z-index: 700;
flex-shrink: 0;
width: 26px;
height: 26px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.06);
color: #888;
font:
bold 13px/26px "Courier New",
monospace;
text-align: center;
cursor: pointer;
padding: 0;
display:none;
}
#performanceStats > div {
position: relative !important;
display: flex;
}
#performanceStats canvas:not([height="9"]):not([height="18"]) {
position: static !important;
cursor: pointer;
}
#statsCustom {
font: 10px monospace;
background: rgba(0, 0, 0, 1);
color: #0ff;
padding: 0 5px;
display: block !important;
white-space: pre;
width: fit-content !important;
}

/* On-demand render indicator */
#renderDot {
position: absolute;
top: 8px;
right: 8px;
width: 8px;
height: 8px;
border-radius: 50%;
background: #333;
z-index: 200;
transition: background 80ms ease;
box-shadow: 0 0 0 0 transparent;
}
#renderDot.active {
background: #0f0;
box-shadow: 0 0 6px 2px rgba(0, 255, 0, 0.4);
}

/* ── shared panel shell ── */
#gamePanel {
position: absolute;
top: 10px;
left: 10px;
z-index: 100;
font:13px/1.6 "Courier New",monospace;
color: #ccc;
/*background: rgba(0, 0, 0, 0.62);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 8px;*/
padding:0;
width:calc(100% - 10px);
backdrop-filter: blur(6px);
user-select: none;
pointer-events: none;
}

#redealBtn {
flex-shrink: 0;
width: 30px;
height: 30px;
border-radius:5px;
border: 1px solid rgba(255, 255, 255, 0.5);
background: rgba(255, 255, 255, 0.06);
color: #aaa;
font:
bold 25px/30px "Courier New",
monospace;
text-align: center;
cursor: pointer;
transition:
background 120ms,
color 120ms;
padding: 0;
}
#redealBtn:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}

/* ── mode row: dropdown + help ── */
#modeRow {
display: flex;
align-items: center;
gap: 6px;
padding-bottom: 10px;
pointer-events: all;
position: absolute;
top:0;
left:0;
}
#modeSelect {
flex: 1;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 4px;
color: #fff;
font:
15px/1 "Courier New",
monospace;
padding: 6px 8px;
cursor: pointer;
}
#modeSelect:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.3);
}
#modeSelect option{color:white;font:12px/1 "Courier New",monospace}
.mothergameholder select::picker(select) {
background: rgba(0, 0, 0, 0.95) !important;
}
.mothergameholder select,
.mothergameholder select::picker(select) {
appearance: base-select;
color: #fff !important;
border: 1px solid rgba(255, 255, 255, 0.15);
}
#helpBtn,
#fullscreenBtn {
flex-shrink: 0;
width: 30px;
height: 30px;
border-radius: 5px;
border: 1px solid rgba(255, 255, 255, 0.5);
background: rgba(255, 255, 255, 0.06);
color: #aaa;
font:
bold 25px/30px "Courier New",
monospace;
text-align: center;
cursor: pointer;
transition:
background 120ms,
color 120ms;
padding: 0;
}
#fullscreenBtn{display:none;}
#helpBtn:hover,
#fullscreenBtn:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}

/* ── HUD ── */
#gameHud {
pointer-events: none;
position: absolute;
top: 0;
right:0;
padding:5px 10px 0;
background: rgba(0, 0, 0, 0.62);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
}
#gameHud:empty {
display: none;
}
.hud-level {
font-size: 18px;
color: #aaa;
line-height:1.2;
}
.hud-score {
font-size: 22px;
font-weight: bold;
color: #fff;
line-height: 1;
}
.hud-score-sub {
font-size: 13px;
font-weight: normal;
color: #666;
}
.hud-par {
font-size: 14px;
color: #aaa;
}
.hud-result {
font-size: 13px;
margin-top: 6px;
color: #eee;
}

/* CSS-driven countdown bar — zero JS per frame */
.hud-timer-track {
margin-top: 8px;
height: 3px;
background: rgba(255, 255, 255, 0.08);
border-radius: 2px;
overflow: hidden;
}
.hud-timer-bar {
height: 100%;
width: 100%;
background: #4f4;
border-radius: 2px;
transform-origin: left center;
}
@keyframes timerShrink {
0% {
width: 100%;
background: #4f4;
}
75% {
background: #4f4;
}
90% {
background: #ff4;
}
100% {
width: 0%;
background: #f44;
}
}

/* ── help modal ── */
#helpOverlay {
display: none;
position: absolute;
inset: 0;
z-index: 500;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
}
#helpOverlay.open {
display: flex;
}
#helpModal {
background: #16161a;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 24px 24px 20px;
max-width: min(88vw, 360px);
width: 100%;
font:
16px/1.6 "Courier New",
monospace;
color: #ebebeb;
position: relative;
height: 100%;
max-height: max-content;
}
#helpBody{max-height:100%;overflow:auto;}
#helpModal h2 {
margin: 0 0 12px;
font-size: 15px;
color: #fff;
letter-spacing: 0.06em;
}
#helpModal p {
margin: 0 0 10px;
}
#helpModal .example {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
padding: 8px 10px;
font-size: 20px;
color: #ccc;
margin: 10px 0 14px;
line-height: 1.8;
}
#helpModal .example .lbl {
color: #666;
font-size: 16px;
letter-spacing: 0.1em;
}
#helpModal .example .cards {
letter-spacing: 0.04em;
}
#helpModal .example .red {
color: #e44;
}
#helpClose {
position: absolute;
top: 8px;
right:8px;
background: none;
border: none;
color: #aaa;
font-size: 30px;
cursor: pointer;
line-height: 1;
padding: 2px 6px;
}
#helpClose:hover {
color: #fff;
}

/* ── confirm modal ── */
#confirmOverlay {
display: none;
position: absolute;
inset: 0;
z-index: 600;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
}
#confirmOverlay.open {
display: flex;
}
#confirmModal {
background: #16161a;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 24px 24px 20px;
max-width: min(88vw, 320px);
width: 100%;
font:
13px/1.65 "Courier New",
monospace;
color: #bbb;
}
#confirmModal h2 {
margin: 0 0 10px;
font-size: 15px;
color: #fff;
letter-spacing: 0.06em;
}
#confirmModal p {
margin: 0 0 18px;
color: #999;
}
#confirmBtns {
display: flex;
gap: 8px;
justify-content: flex-end;
}
#confirmBtns button {
font:
12px/1 "Courier New",
monospace;
padding: 7px 16px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.15);
cursor: pointer;
transition:
background 120ms,
color 120ms;
}
#confirmCancel {
background: rgba(255, 255, 255, 0.06);
color: #aaa;
}
#confirmCancel:hover {
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
#confirmOk {
background: rgba(180, 60, 60, 0.35);
color: #f88;
border-color: rgba(180, 60, 60, 0.5);
}
#confirmOk:hover {
background: rgba(180, 60, 60, 0.55);
color: #fcc;
}

/* ── Plus Shot target overlay ── */
#plusTarget {
display: none;
position: absolute;
top: 25dvh;
transform: translate(-50%, -50%);
z-index: 50;
pointer-events: none;
align-items: center;
justify-content: center;
flex-direction: column;
background: rgba(0, 0, 0, 0.62);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 16px;
padding: 14px 36px 16px;
backdrop-filter: blur(6px);
white-space: nowrap;
}
#plusTarget.active {
display: flex;
}
#plusTargetNumber {
font:
bold 72px/1 Georgia,
serif;
color: rgba(255, 255, 255, 0.96);
letter-spacing: -1px;
user-select: none;
}
#plusTargetLabel {
font:
11px/1 "Courier New",
monospace;
color: rgba(255, 255, 255, 0.3);
letter-spacing: 3px;
text-transform: uppercase;
margin-top: 7px;
user-select: none;
}

.iframe_fs_back{top:50px}
@media (max-width:500px) {
	#modeSelect{position:absolute;width:180px;top:50px;}
	.iframe_fs_back{top:100px}
}


.iframe_fs_back,.iframeoverlay{z-index:1001}
.gamestpIco{position:relative;z-index:1002}
.contentLoader{z-index:2000}