/* ==========================================================================
   VICE POOL — GTA VI "Vice" NUI layer
   Type: GTA Art Deco (400 / 500 only). --color is the accent pushed from
   Config.InterfaceColor (defaults to Vice pink #ffb2c6).
   ========================================================================== */
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Regular.ttf") format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "GTAArtDeco"; src: url("fonts/GTAArtDeco-Medium.ttf") format("truetype"); font-weight: 500 900; font-display: block; }

:root {
	/* 1 design px at 1920x1080; scales with the smaller screen axis so 720p, 4K and ultrawide keep 1080p proportions */
	--u: clamp(0.75px, min(0.05208vw, 0.09259vh), 2.5px);
	--color: #ffb2c6;
	--v-font: "GTAArtDeco", Arial, sans-serif;
	--v-bg: #0c0d1b;
	--v-cream: #fff9cb;
	--v-pink: #ffb2c6;
	--v-lilac: #e5ddff;
	--v-lilac-soft: #ccc2f5;
	--v-peach: #ffd4a8;
	--v-lime: #e6ffa3;
	--v-gold: #ffdf80;
	--v-cta: #fed1df;
	--v-cta-ink: #603a55;
	--v-ink: #0f0c1a;
	--v-s1: rgba(229, 221, 255, 0.05);
	--v-s2: rgba(229, 221, 255, 0.09);
	--v-line: rgba(229, 221, 255, 0.09);
	--v-mute: rgba(229, 221, 255, 0.62);
	--v-grad-night: linear-gradient(189deg, #1f1f38 0.55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%);
	--v-glow-top: radial-gradient(70% calc(160 * var(--u)) at 50% 0%, rgba(255, 223, 128, 0.12), rgba(244, 113, 124, 0.08) 50%, transparent 100%);
	--v-sunset-line: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%);
	--v-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--v-shadow: 0 calc(30 * var(--u)) calc(70 * var(--u)) rgba(7, 7, 15, 0.5);
}

* { box-sizing: border-box; user-select: none; -webkit-user-select: none; font-family: var(--v-font); }

html { overflow: hidden; }
body { display: none; margin: 0; color: #fff; background: transparent; letter-spacing: -0.015em; -webkit-font-smoothing: antialiased; }

@keyframes vp-rise { from { opacity: 0; translate: 0 calc(12 * var(--u)); } to { opacity: 1; translate: 0 0; } }
@keyframes vp-side { from { opacity: 0; transform: translate(-14px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes vp-pop  { from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---------- shared pieces ---------- */
.vp-plate,
.infonotify-container,
.billiardprogressbartext,
.billiardkeykeys,
.billiardchangetext,
.vp-meter,
.billiardchoose-container {
	background: var(--v-glow-top), var(--v-grad-night);
	box-shadow: var(--v-shadow);
	overflow: hidden;
}
.infonotify-container::before,
.billiardkeykeys::before,
.billiardchangetext::before,
.billiardprogressbartext::before,
.billiardchoose-container::before {
	content: ""; position: absolute; left: calc(24 * var(--u)); top: 0; width: calc(64 * var(--u)); height: calc(3 * var(--u));
	border-radius: 0 0 calc(3 * var(--u)) calc(3 * var(--u)); background: var(--v-sunset-line);
}

.vp-eyebrow { font-weight: 500; font-size: calc(11 * var(--u)); line-height: 1.2; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color); }
.vp-sub     { font-weight: 400; font-size: calc(13 * var(--u)); line-height: 1.4; color: var(--v-lilac); opacity: 0.85; letter-spacing: -0.01em; }
.vp-label   { font-weight: 500; font-size: calc(10 * var(--u)); line-height: 1; letter-spacing: 0.15em; text-transform: uppercase; color: var(--v-peach); }
.vp-title   { font-weight: 500; font-size: calc(34 * var(--u)); line-height: 0.92; text-transform: uppercase; color: var(--v-cream); letter-spacing: 0; }

/* key chips (ids filled by scripts.js) */
#infobindcolor,
#billiardreactkey,
#billiardkeykeysdata1,
#billiardkeykeysdata2,
#billiardkeykeysdata3,
#billiardchangekey {
	display: inline-block; min-width: calc(26 * var(--u)); height: calc(26 * var(--u)); padding: 0 calc(9 * var(--u)); margin: 0 calc(4 * var(--u));
	border-radius: calc(1000 * var(--u)); background: var(--v-cream); color: var(--v-ink);
	font-weight: 500; font-size: calc(11 * var(--u)); line-height: calc(26 * var(--u)); letter-spacing: 0.04em;
	text-align: center; vertical-align: middle; text-transform: uppercase;
}

/* ---------- interaction prompt ---------- */
.infonotify-container {
	position: absolute; left: calc(56 * var(--u)); top: 50%; transform: translate(0, -50%);
	width: calc(340 * var(--u)); max-width: calc(100vw - calc(112 * var(--u)));
	padding: calc(22 * var(--u)) calc(24 * var(--u)) calc(20 * var(--u)); border-radius: calc(24 * var(--u)); z-index: 30; display: none;
	animation: vp-side 0.32s var(--v-ease) both;
}
.infonotifytext {
	margin: calc(10 * var(--u)) 0 calc(8 * var(--u)); font-weight: 500; font-size: calc(17 * var(--u)); line-height: 1.9;
	color: #fff; text-align: left;
}
.infonotify-container .vp-sub { font-size: calc(12 * var(--u)); color: var(--v-lilac-soft); }

/* ---------- shot power ---------- */
.billiardprogress-container,
.billiardkey-container,
.billiardchange-container {
	position: absolute; inset: 0; width: 100%; height: 100%;
	overflow: hidden; z-index: 20; display: none; pointer-events: none;
}

.billiardprogressbartext {
	position: absolute; left: 50%; bottom: calc(56 * var(--u)); transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u));
	padding: calc(18 * var(--u)) calc(30 * var(--u)) calc(16 * var(--u)); border-radius: calc(24 * var(--u)); white-space: nowrap;
	animation: vp-rise 0.3s var(--v-ease) both;
}
.billiardprogressbartext .vp-line { font-weight: 500; font-size: calc(18 * var(--u)); line-height: calc(26 * var(--u)); color: #fff; }
.billiardprogressbartext .vp-sub  { font-size: calc(12 * var(--u)); color: var(--v-lilac-soft); }

.vp-meter {
	position: absolute; right: calc(56 * var(--u)); top: 50%; transform: translateY(-50%);
	width: calc(92 * var(--u)); padding: calc(18 * var(--u)) 0 calc(16 * var(--u)); border-radius: calc(24 * var(--u));
	display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u));
}
.billiardprogressbarmaincontainer {
	position: relative; width: calc(16 * var(--u)); height: 44vh; min-height: calc(220 * var(--u)); max-height: calc(460 * var(--u));
	border-radius: calc(1000 * var(--u)); background: rgba(229, 221, 255, 0.08); overflow: hidden;
}
.billiardprogressbarmaincontainerdata {
	position: absolute; left: 0; bottom: 0; width: 100%; height: 0%;
	border-radius: calc(1000 * var(--u));
	background: linear-gradient(0deg, #e963c7 0%, #f4717c 50%, #ffdf80 100%);
}

/* ---------- aim + ball-in-hand dock ---------- */
.billiardkeykeys,
.billiardchangetext {
	position: absolute; left: 50%; bottom: calc(48 * var(--u)); transform: translateX(-50%);
	display: flex; align-items: center; gap: calc(28 * var(--u));
	padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)) calc(28 * var(--u)); border-radius: calc(24 * var(--u)); white-space: nowrap;
	animation: vp-rise 0.3s var(--v-ease) both;
}
.vp-head { display: flex; flex-direction: column; gap: calc(5 * var(--u)); padding-right: calc(26 * var(--u)); border-right: 1px solid var(--v-line); }
.vp-head .vp-sub { font-size: calc(12 * var(--u)); }
.vp-hints { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.vp-hint {
	display: block; padding: calc(7 * var(--u)) calc(16 * var(--u)) calc(7 * var(--u)) calc(6 * var(--u)); border-radius: calc(1000 * var(--u)); background: var(--v-s1);
	font-weight: 500; font-size: calc(13 * var(--u)); line-height: calc(26 * var(--u)); color: var(--v-lilac);
}
.vp-hints .vp-hint > span[id]:first-child { margin: 0 calc(10 * var(--u)) 0 0; }
#billiardkeykeysshow .vp-hint > span:first-child, #billiardchangeshow .vp-hint > span:first-child { margin: 0 calc(10 * var(--u)) 0 0; }
#billiardkeychangeshow { display: none; }

/* ---------- game picker ---------- */
.billiardchoose-container {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: calc(500 * var(--u)); max-width: calc(100vw - calc(48 * var(--u)));
	padding: calc(34 * var(--u)) calc(32 * var(--u)) calc(30 * var(--u)); border-radius: calc(24 * var(--u)); z-index: 40; display: none;
	animation: vp-pop 0.34s var(--v-ease) both;
}
.billiardchoose-container .vp-title { margin: calc(10 * var(--u)) 0 calc(8 * var(--u)); }
.billiardchoose-container > .vp-sub { margin-bottom: calc(24 * var(--u)); }

.closechoose {
	position: absolute; top: calc(20 * var(--u)); right: calc(20 * var(--u)); width: calc(38 * var(--u)); height: calc(38 * var(--u));
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; color: #fff; cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
	transition: background 0.2s var(--v-ease), color 0.2s var(--v-ease);
}
.closechoose:hover { background: var(--v-s2); color: var(--v-cream); }

.vp-modes { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.buttonchoose1,
.buttonchoose2 {
	position: relative; display: flex; align-items: center; gap: calc(16 * var(--u));
	padding: calc(14 * var(--u)) calc(18 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); border-radius: calc(12 * var(--u)); cursor: pointer;
	background: var(--v-s1); color: #fff;
	transition: background 0.22s var(--v-ease), transform 0.22s var(--v-ease);
}
.buttonchoose1::after,
.buttonchoose2::after {
	content: ""; margin-left: auto; width: calc(8 * var(--u)); height: calc(8 * var(--u)); flex: none;
	border-top: calc(2 * var(--u)) solid var(--v-lilac-soft); border-right: calc(2 * var(--u)) solid var(--v-lilac-soft);
	transform: rotate(45deg); opacity: 0.6; transition: transform 0.22s var(--v-ease), opacity 0.22s;
}
.buttonchoose1:hover,
.buttonchoose2:hover { background: var(--v-cream); }
.buttonchoose1:hover::after,
.buttonchoose2:hover::after { border-color: var(--v-ink); opacity: 1; transform: translateX(calc(3 * var(--u))) rotate(45deg); }
.buttonchoose1:hover .vp-mode-name,
.buttonchoose2:hover .vp-mode-name { color: var(--v-ink); }
.buttonchoose1:hover .vp-mode-desc,
.buttonchoose2:hover .vp-mode-desc { color: rgba(15, 12, 26, 0.7); }
.buttonchoose1:active,
.buttonchoose2:active { transform: scale(0.985); }

.vp-mode-ball {
	flex: none; width: calc(46 * var(--u)); height: calc(46 * var(--u)); border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 35% 30%, #3a3760 0%, #18182d 70%);
}
.vp-mode-ball.nine { background: radial-gradient(circle at 35% 30%, #ffe9a6 0%, #ffdf80 45%, #d9a94a 100%); }
.vp-mode-ball b {
	width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; background: #fff; color: var(--v-ink);
	font-weight: 500; font-size: calc(12 * var(--u)); line-height: calc(22 * var(--u)); text-align: center;
}
.vp-mode-copy { display: flex; flex-direction: column; gap: calc(5 * var(--u)); min-width: 0; }
.vp-mode-name { font-weight: 500; font-size: calc(20 * var(--u)); line-height: 1; text-transform: uppercase; color: var(--v-cream); transition: color 0.22s; }
.vp-mode-desc { font-weight: 400; font-size: calc(12 * var(--u)); line-height: 1.35; color: var(--v-lilac-soft); transition: color 0.22s; }

/* ---------- small screens ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.closechoose svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
