/* Transparent by default so this drops cleanly into an OBS browser
   source as an overlay — only the bordered frame itself is visible. */
html, body {
	background: transparent !important;
}

.gpp-frame {
	position: relative;
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	margin: 0 auto;
	border-radius: 14px;
	padding: 5px;
	background: linear-gradient(120deg, var(--gpp-c1, #2dd4bf), var(--gpp-c2, #a855f7), var(--gpp-c3, #f87171), var(--gpp-c1, #2dd4bf));
	background-size: 300% 300%;
	animation: gpp-border-shift 6s ease infinite;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

@keyframes gpp-border-shift {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.gpp-inner {
	width: 100%;
	height: 100%;
	background: #05100f;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gpp-video {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	object-fit: cover;
}

.gpp-locked {
	text-align: center;
	color: #e6fffa;
	font-family: 'Courier New', monospace;
	padding: 20px;
}
.gpp-locked h3 {
	margin-top: 0;
	color: #2dd4bf;
}

.gpp-btn {
	background: #2dd4bf;
	color: #05100f;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	font-weight: bold;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	text-decoration: none;
	display: inline-block;
}
.gpp-btn:hover {
	background: #5eead4;
}
.gpp-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.gpp-unlock-msg {
	margin-top: 10px;
	font-size: 13px;
	color: #f87171;
}

/* Recorder */
.gpp-recorder-box {
	max-width: 720px;
	margin: 0 auto;
	color: #e6fffa;
	font-family: 'Courier New', monospace;
	text-align: center;
}
.gpp-recorder-note {
	font-size: 13px;
	color: #99f6e4;
}
#gpp-rec-preview {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	margin: 10px 0;
}
.gpp-recorder-controls {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 10px;
}
#gpp-rec-status {
	margin-top: 10px;
	font-size: 13px;
	color: #2dd4bf;
}

/* Tip jar */
.gpp-tipjar {
	max-width: 420px;
	margin: 0 auto;
	padding: 16px 20px;
	border-radius: 12px;
	background: linear-gradient(120deg, var(--gpp-c1, #2dd4bf), var(--gpp-c2, #a855f7));
	color: #05100f;
	font-family: 'Courier New', monospace;
	text-align: center;
}
.gpp-tipjar-title {
	margin: 0 0 10px;
}
.gpp-meter {
	width: 100%;
	height: 22px;
	background: rgba(5, 16, 15, 0.35);
	border-radius: 11px;
	overflow: hidden;
	border: 1px solid rgba(5, 16, 15, 0.4);
}
.gpp-meter-fill {
	height: 100%;
	background: #05100f;
	transition: width 0.6s ease;
}
.gpp-meter-label {
	margin-top: 8px;
	font-weight: bold;
}
.gpp-tip-form {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 12px;
}
.gpp-tip-amount {
	width: 90px;
	border-radius: 6px;
	border: none;
	padding: 8px;
	font-family: 'Courier New', monospace;
}
.gpp-tipjar-note {
	margin-top: 10px;
}
.gpp-tip-msg {
	margin-top: 8px;
	font-size: 12px;
}

/* Live chat */
.gpp-chat {
	max-width: 360px;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	padding: 3px;
	background: linear-gradient(120deg, var(--gpp-c1, #2dd4bf), var(--gpp-c2, #a855f7));
	font-family: 'Courier New', monospace;
}
.gpp-chat-title {
	background: #05100f;
	color: #2dd4bf;
	font-weight: bold;
	padding: 8px 12px;
	border-radius: 9px 9px 0 0;
}
.gpp-chat-messages {
	background: rgba(5, 16, 15, 0.9);
	height: 260px;
	overflow-y: auto;
	padding: 8px 12px;
	font-size: 13px;
	color: #e6fffa;
}
.gpp-chat-msg-row {
	margin-bottom: 6px;
	line-height: 1.4;
	word-wrap: break-word;
}
.gpp-chat-msg-row .gpp-chat-user {
	color: #2dd4bf;
	font-weight: bold;
}
.gpp-chat-msg-row .gpp-chat-time {
	color: #667;
	font-size: 10px;
	margin-left: 6px;
}
.gpp-chat-msg-row .gpp-chat-del {
	color: #f87171;
	cursor: pointer;
	margin-left: 6px;
	font-size: 10px;
}
.gpp-chat-msg-row .gpp-chat-ban {
	cursor: pointer;
	margin-left: 4px;
	font-size: 10px;
}
.gpp-chat-input-row {
	display: flex;
	gap: 6px;
	background: #05100f;
	padding: 8px;
	border-radius: 0 0 9px 9px;
}
.gpp-chat-input {
	flex: 1;
	border-radius: 6px;
	border: 1px solid #134e4a;
	background: #06201d;
	color: #e6fffa;
	padding: 6px 8px;
	font-family: 'Courier New', monospace;
}
.gpp-chat-note {
	background: #05100f;
	color: #99f6e4;
	padding: 8px 12px;
	margin: 0;
	border-radius: 0 0 9px 9px;
	font-size: 12px;
}
.gpp-chat .gpp-chat-msg {
	background: #05100f;
	color: #f87171;
	font-size: 11px;
	padding: 0 12px 6px;
}

/* Buy ZIP */
.gpp-download {
	max-width: 360px;
	margin: 0 auto;
	padding: 16px 20px;
	border-radius: 12px;
	background: linear-gradient(120deg, var(--gpp-c1, #2dd4bf), var(--gpp-c2, #a855f7));
	color: #05100f;
	font-family: 'Courier New', monospace;
	text-align: center;
}
.gpp-download h3 {
	margin: 0 0 8px;
}
.gpp-buy-msg {
	margin-top: 8px;
	font-size: 12px;
	color: #7a1a1a;
}

/* Spin the wheel */
.gpp-wheelbox {
	max-width: 340px;
	margin: 0 auto;
	text-align: center;
	font-family: 'Courier New', monospace;
	color: #e6fffa;
}
.gpp-wheel-title {
	color: #2dd4bf;
	margin-bottom: 10px;
}
.gpp-wheel-frame {
	position: relative;
	width: 260px;
	height: 260px;
	margin: 0 auto;
}
.gpp-wheel-disc {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--gpp-wheel-bg);
	border: 6px solid #05100f;
	box-shadow: 0 0 0 3px var(--gpp-c1, #2dd4bf), 0 0 24px rgba(0,0,0,0.5);
	transition: transform 4s cubic-bezier(0.15, 0.85, 0.15, 1);
}
.gpp-wheel-pointer {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 24px;
	color: #f87171;
	z-index: 2;
}
.gpp-wheel-legend {
	list-style: none;
	margin: 12px 0;
	padding: 0;
	font-size: 11px;
	text-align: left;
	max-height: 100px;
	overflow-y: auto;
}
.gpp-wheel-legend li {
	padding: 2px 0;
}
.gpp-wheel-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-right: 6px;
}
.gpp-wheel-note {
	font-size: 12px;
	color: #99f6e4;
}
.gpp-wheel-result {
	margin-top: 10px;
	font-weight: bold;
	color: #2dd4bf;
	min-height: 18px;
}

/* Digital gifts */
.gpp-gift-shop, .gpp-gifts-received {
	max-width: 420px;
	margin: 0 auto;
	font-family: 'Courier New', monospace;
	color: #e6fffa;
	background: rgba(0, 255, 200, 0.05);
	border: 1px solid #134e4a;
	border-radius: 10px;
	padding: 14px 18px;
}
.gpp-gift-shop h3, .gpp-gifts-received h3 {
	color: #2dd4bf;
	margin-top: 0;
}
.gpp-gift-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
	margin-bottom: 10px;
}
.gpp-gift-option {
	background: #06201d;
	border: 2px solid #134e4a;
	border-radius: 8px;
	padding: 8px;
	text-align: center;
	cursor: pointer;
	font-size: 12px;
}
.gpp-gift-option:hover {
	border-color: #2dd4bf;
}
.gpp-gift-option.gpp-gift-selected {
	border-color: #a855f7;
	background: rgba(168, 85, 247, 0.15);
}
.gpp-gift-icon {
	font-size: 24px;
}
.gpp-gift-price {
	color: #99f6e4;
	font-size: 11px;
}
.gpp-gift-message {
	width: 100%;
	box-sizing: border-box;
	border-radius: 6px;
	border: 1px solid #134e4a;
	background: #06201d;
	color: #e6fffa;
	padding: 8px;
	font-family: 'Courier New', monospace;
	margin-bottom: 8px;
	resize: vertical;
}
.gpp-gift-msg {
	margin-top: 8px;
	font-size: 12px;
	color: #2dd4bf;
}
.gpp-gift-note {
	color: #99f6e4;
	font-size: 12px;
}
.gpp-gift-log {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gpp-gift-log li {
	padding: 8px 0;
	border-bottom: 1px solid #134e4a;
	font-size: 13px;
}
.gpp-gift-log li:last-child {
	border-bottom: none;
}
.gpp-gift-log-icon {
	font-size: 18px;
	margin-right: 6px;
}
.gpp-gift-log-message {
	color: #99f6e4;
	font-size: 12px;
	margin-top: 3px;
	font-style: italic;
}

/* Countdown */
.gpp-countdown {
	text-align: center;
	color: #e6fffa;
	font-family: 'Courier New', monospace;
	padding: 20px;
}
.gpp-countdown h3 {
	margin-top: 0;
	color: #2dd4bf;
}
.gpp-countdown-label {
	color: #99f6e4;
	font-size: 12px;
	margin-bottom: 6px;
}
.gpp-countdown-clock {
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 2px;
}
