/* Shared components use the active token palette from drop_surface_palettes.php. */
:root {
	--drop-card-radius: 16px;
	--drop-card-border-width: 2px;
	--drop-card-outline: var(--drop-card-border-width) solid var(--drop-surface-ink);
	--drop-card-shadow: 1px 2px 0 var(--drop-surface-ink);
	--drop-button-radius: 8px;
	--drop-button-lift: 1px;
	--drop-table-heading-rule: 1px solid var(--drop-surface-form-line);
}

.drop-card {
	box-sizing: border-box;
	min-width: 0;
	background: var(--drop-surface-card);
	color: var(--drop-surface-ink);
	border: var(--drop-card-outline);
	border-radius: var(--drop-card-radius);
	box-shadow: var(--drop-card-shadow);
}

.drop-button.drop-button {
	--button-bg: var(--drop-surface-accent);
	--button-text: var(--drop-surface-on-accent);
	--button-hover: var(--drop-surface-accent-hover);
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 42px;
	max-width: 100%;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid transparent !important;
	border-radius: var(--drop-button-radius) !important;
	background: var(--button-bg) !important;
	color: var(--button-text) !important;
	box-shadow: none !important;
	text-shadow: none;
	font: 700 .875rem/1.3 system-ui, sans-serif;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	cursor: pointer;
}
.drop-button.drop-button:hover:not(:disabled) { background: var(--button-hover) !important; }
.drop-button.drop-button:focus-visible {
	outline: 2px solid var(--drop-surface-ink);
	outline-offset: 2px;
}
.drop-button.drop-button:disabled {
	opacity: .55;
	cursor: default;
}
.drop-button.drop-button--secondary {
	--button-bg: var(--drop-surface-paper);
	--button-text: var(--drop-surface-ink);
	--button-hover: var(--drop-surface-tint);
	border-color: var(--drop-surface-line) !important;
}
.drop-button--secondary:is(.active, .is-active, [aria-pressed="true"]) {
	--button-bg: var(--drop-surface-accent);
	--button-text: var(--drop-surface-on-accent);
	--button-hover: var(--drop-surface-accent-hover);
}
.drop-button.drop-button--compact { min-height: 36px; padding: 6px 12px; }

.drop-table.drop-table {
	width: min(100%, 32rem);
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	text-align: start;
}
.drop-table.drop-table :is(th, td) {
	padding: .6rem .8rem;
	color: var(--drop-surface-ink);
	font-size: .875rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.drop-table thead th { background: var(--drop-surface-paper); }
.drop-table.drop-table tr > :first-child { text-align: start; }
.drop-table.drop-table tr > :last-child { text-align: end; }
.drop-table thead th:first-child { border-start-start-radius: calc(var(--drop-card-radius) - var(--drop-card-border-width)); }
.drop-table thead th:last-child { border-start-end-radius: calc(var(--drop-card-radius) - var(--drop-card-border-width)); }
.drop-table tbody td { background: var(--drop-surface-card); border-top: 1px solid var(--drop-surface-line); }
.drop-table tbody tr:last-child td:first-child { border-end-start-radius: calc(var(--drop-card-radius) - var(--drop-card-border-width)); }
.drop-table tbody tr:last-child td:last-child { border-end-end-radius: calc(var(--drop-card-radius) - var(--drop-card-border-width)); }
.drop-table tbody .is-current td {
	background: var(--drop-surface-tint);
	font-weight: 700;
}
.drop-table [aria-current="true"] .fa-check,
.drop-table-boost { color: var(--drop-surface-accent); font-weight: 700; }

.drop-button-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.drop-faucet-subtabs { margin: 18px auto 8px; }
.drop-faucet-subtab.drop-button { min-width: min(130px, 100%); }

@media (max-width: 768px) {
	.drop-faucet-subtab.drop-button {
		flex: 1 1 0;
		min-width: 0;
	}
	.drop-table.drop-table :is(th, td) { padding-inline: .6rem; }
}

.drop-table tbody td:last-child {
	font-variant-numeric: tabular-nums;
	overflow-wrap: normal;
	white-space: nowrap;
}

/* Raised actions are opt-in for page content. */
.drop-button.drop-button--raised {
	border: var(--drop-card-outline) !important;
	box-shadow: 0 var(--drop-button-lift) 0 var(--drop-surface-ink) !important;
}
.drop-button.drop-button--raised:active:not(:disabled) {
	transform: translateY(var(--drop-button-lift));
	box-shadow: none !important;
}

#drop_faucet_panel { --drop-faucet-width: 35rem; }
#drop_faucet_panel .drop-wager-progress-row > .columns {
	float: none; width: min(100%, var(--drop-faucet-width)); padding-inline: 0;
}
#drop_faucet_panel .drop-wp-faucet { width: 100%; }
#main_content #drop_faucet_panel .drop-payout-schedule {
	width: min(100%, var(--drop-faucet-width)); max-width: none;
}
#free_play_payout_table .drop-table { width: 100%; margin: 0; border: 0; }

.drop-faucet-wait {
	width: min(100%, 35rem);
	margin: 16px auto 0;
	padding: 16px;
	text-align: center;
}
.drop-faucet-wait h2 {
	margin: 0;
	color: var(--drop-surface-ink);
	font-size: 1rem;
	font-weight: 750;
}
#time_remaining.drop-faucet-time {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: auto;
	height: auto;
	min-height: 0;
	padding: 0;
	gap: 8px;
	margin: 12px auto 16px;
}
.drop-faucet-time-part {
	display: grid;
	min-width: 0;
	gap: 3px;
	color: var(--drop-surface-muted);
	font-size: .75rem;
	overflow-wrap: anywhere;
}
.drop-faucet-time-part strong {
	min-width: 3.25rem;
	padding: 5px;
	border-radius: 8px;
	background: var(--drop-surface-paper);
	color: var(--drop-surface-accent);
	font-size: 1.65rem;
	font-variant-numeric: tabular-nums;
}
.drop-faucet-time-divider {
	padding-top: 8px;
	font-size: 1.25rem;
	font-weight: 750;
}

/* Keep the legacy grid inside each panel while giving it a single outer frame. */
.drop-card.drop-panel {
	display: flow-root;
	padding: 0;
}
.drop-panel :is(.reward_table_box, .reward_table_input, .lottery_winner_table_box) {
	background: transparent !important;
	color: var(--drop-surface-ink) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none;
}
.drop-panel :is(.table_header_background, .gold, .green_prize_rank, .wager_personal_header, .reward_product_name) {
	background: var(--drop-surface-paper) !important;
	color: var(--drop-surface-ink) !important;
	text-shadow: none;
}
.drop-panel :is(.table_header_background, .gold, .green_prize_rank, .reward_product_name) {
	border-radius: calc(var(--drop-card-radius) - var(--drop-card-border-width)) calc(var(--drop-card-radius) - var(--drop-card-border-width)) 0 0 !important;
	border-bottom: 1px solid var(--drop-surface-line) !important;
}
.drop-panel .effect2::before,
.drop-panel .effect2::after { content: none; }
.drop-panel .drop-table--embedded {
	width: 100%;
	max-width: none;
}
.drop-table--embedded tbody td:last-child { white-space: normal; overflow-wrap: anywhere; }
.drop-table--embedded :is(thead th, tbody td):only-child { text-align: center; }
.drop-button.reward_category_name {
	width: 100%;
	justify-content: space-between;
	gap: 8px;
}
.drop-reward-product { margin-top: 20px; }
.drop-reward-product .reward_product_name { margin: 0; }
.drop-reward-product .drop-reward-product-actions { margin: 0; padding: 10px 0; }

.drop-button.leaderboard_button {
	--button-bg: linear-gradient(to right top, #87ff6d, #7afd5e);
	--button-hover: #87ff6d;
	--button-text: #000;
}
.drop-button.winners_button {
	--button-bg: linear-gradient(to right top, #fcf5ac, #ffee3c);
	--button-hover: #fff175;
	--button-text: #000;
}

@media (max-width: 640px) {
	#drop_daily_jackpot .timer_div_daily_jackpot {
		width: auto !important;
		flex: 1 1 145px !important;
		min-width: 0;
	}
	#drop_daily_jackpot .leaderboard_winner_button_container_div {
		min-width: 132px !important;
	}
}

/* Compact scoreboards share the table palette and numeric alignment. */
.drop-table.drop-score-table {
	width: calc(100% - 24px);
	table-layout: fixed;
	border: 1px solid var(--drop-surface-line);
	border-radius: 12px;
}
.drop-score-table th:first-child { width: 11%; }
.drop-score-table th:nth-child(3),
.drop-score-table th:nth-child(4) { width: 26%; }
.drop-table.drop-score-table :is(th, td) { padding: 9px 6px; font-size: .75rem; }
.drop-score-table :is(th, td):nth-child(n+3) { text-align: end; font-variant-numeric: tabular-nums; }
.drop-score-table tbody td:last-child { white-space: normal; overflow-wrap: anywhere; }
.drop-table.drop-score-table td[colspan] { text-align: center; color: var(--drop-surface-muted); }
.drop-score-table img { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; }
.drop-jp-modal .drop-score-bet {
	margin: 0;
	padding: 0;
	background: none;
	color: var(--drop-surface-accent);
	font: inherit;
	text-decoration: underline;
	overflow-wrap: anywhere;
}
.drop-score-podium {
	display: flex;
	align-items: end;
	gap: 8px;
	margin: 22px 12px 16px;
}
.drop-score-podium[hidden] { display: none; }
.drop-score-place {
	flex: 1 1 0;
	min-width: 0;
	display: grid;
	gap: 4px;
	padding: 8px 4px;
	border: 1px solid var(--drop-surface-line);
	border-radius: 12px;
	background: var(--drop-surface-paper);
	text-align: center;
	color: var(--drop-surface-ink);
	font-size: .8rem;
	overflow-wrap: anywhere;
}
.drop-score-place[data-rank="2"] { order: -1; }
.drop-score-place[data-rank="1"] {
	padding-block: 14px 12px;
	border: 2px solid var(--drop-surface-accent);
	background: color-mix(in srgb, var(--drop-surface-accent) 8%, var(--drop-surface-paper));
	box-shadow: 0 3px 0 var(--drop-surface-accent);
}
.drop-score-place small { color: var(--drop-surface-muted); }
.drop-score-value { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.drop-score-medal {
	--medal-light: #f2f5fa;
	--medal-dark: #9da9bb;
	position: relative;
	isolation: isolate;
	justify-self: center;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 6px 0 3px;
	border: 2px solid var(--medal-dark);
	border-radius: 50%;
	background: linear-gradient(145deg, var(--medal-light), var(--medal-dark));
	box-shadow: inset 0 0 0 2px var(--medal-light), 0 2px 0 var(--medal-dark);
	font-weight: 850;
}
.drop-score-medal::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -8px 4px auto;
	height: 11px;
	background: var(--drop-surface-accent);
	clip-path: polygon(0 0, 40% 0, 50% 55%, 60% 0, 100% 0, 76% 100%, 24% 100%);
}
.drop-score-place[data-rank="1"] .drop-score-medal {
	--medal-light: #fff2ad;
	--medal-dark: #d4a13a;
	width: 44px;
	height: 44px;
	font-size: 1.05rem;
}
.drop-score-place[data-rank="3"] .drop-score-medal {
	--medal-light: #ffe0c7;
	--medal-dark: #c58a66;
}
.drop-table.drop-score-table :is(th, td):nth-child(2) { text-align: start; }
.drop-table.drop-score-table :is(th, td):nth-child(n+3) { text-align: end; }
.drop-contest-lb-week:empty { display: none; }
.drop-score-stats + .drop-score-table { margin-top: 12px; }

.drop-toast-region {
	position: fixed;
	z-index: 2147483001;
	right: calc(12px + env(safe-area-inset-right, 0px));
	top: calc(var(--drop-topbar-h, 45px) + var(--drop-announce-h, 0px) + 12px);
	width: min(360px, calc(100% - 24px));
	pointer-events: none;
}
.drop-toast {
	box-shadow: 0 1px 0 var(--drop-surface-ink);
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 6px 5px 14px;
	font-size: .875rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.drop-toast .drop-toast-close {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	height: 44px;
	margin: 0;
	margin-inline-start: auto;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--drop-surface-ink);
	box-shadow: none;
	font: 500 1.375rem/1 system-ui, sans-serif;
	cursor: pointer;
	pointer-events: auto;
}
.drop-toast .drop-toast-close:is(:hover, :focus-visible) {
	background: var(--drop-surface-paper);
	color: var(--drop-surface-accent);
}
.drop-toast .drop-toast-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -3px;
}
.drop-toast-mark {
	display: grid;
	place-items: center;
	flex: 0 0 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--drop-surface-tint);
	color: var(--drop-surface-ink);
}
.drop-toast:is(.drop-toast--error, .drop-toast--warning) .drop-toast-mark {
	background: var(--drop-surface-accent);
	color: var(--drop-surface-on-accent);
}
.drop-toast--info .drop-toast-mark {
	background: var(--drop-surface-paper);
}
.drop-toast-progress {
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: var(--drop-surface-accent);
	transform-origin: left;
	animation: drop-toast-countdown var(--drop-toast-duration) linear forwards;
}
@keyframes drop-toast-countdown { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
	.drop-toast-progress { animation-timing-function: steps(6, end); }
}
@media (prefers-reduced-motion: no-preference) {
	.drop-toast { animation: drop-toast-in .18s ease-out both; }
	@keyframes drop-toast-in {
		from { opacity: 0; transform: translateY(5px); }
	}
}

/* Full-page data tables keep the existing scroll containers on narrow screens. */
table.drop-table.drop-table--wide {
	width: 100%;
	border: var(--drop-card-outline);
	border-collapse: separate;
}
table.drop-table--wide thead :is(th, td) {
	background: var(--drop-surface-paper);
	color: var(--drop-surface-ink);
}
table.drop-table--wide tbody td:last-child { white-space: normal; }
.drop-public-card.drop-card,
.drop-gift-card.drop-card,
.drop-pf-panel.drop-card {
	background: var(--drop-surface-card);
	border: var(--drop-card-outline);
	border-radius: var(--drop-card-radius);
	box-shadow: var(--drop-card-shadow);
}

/* The page owns the outside edge and the history table owns its own frame. */
#main_content .game_content.drop-game-surface {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.drop-game-surface .drop-history-toolbar {
	background: var(--drop-surface-paper);
	color: var(--drop-surface-ink);
	text-shadow: none;
	border-bottom: 1px solid var(--drop-surface-line);
}
.drop-game-surface .drop-history-title { color: var(--drop-surface-ink); text-shadow: none; }

.drop-page-title {
	margin: 16px auto 12px;
	color: var(--drop-surface-ink);
	font: 800 clamp(1.25rem, 3vw, 1.65rem)/1.2 system-ui, sans-serif;
	text-align: center;
}
.drop-page-details {
	width: min(100%, 42rem);
	margin: 12px auto;
	text-align: start;
}
.drop-page-details > summary {
	padding: 10px 14px;
	color: var(--drop-surface-ink);
	font-weight: 750;
	cursor: pointer;
}
.drop-page-details > summary:focus-visible { outline: 2px solid var(--drop-surface-accent); outline-offset: 2px; }
.drop-page-details-body {
	padding: 12px 14px;
	border-top: 1px solid var(--drop-surface-line);
}
.drop-page-details-body p:last-child { margin-bottom: 0; }
.drop-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: min(100%, 42rem);
	margin: 0 auto 16px;
}
.drop-summary-grid > .row {
	width: 100%;
	margin: 0 !important;
}
.drop-summary-grid > .row > .columns { width: 100%; }
#faq_tab .drop-page-details { margin-block: 8px; }
#earn_btc_tab .earn_hub_nav { padding-inline: 2px; }
#earn_btc_tab .earn_hub_nav .drop-button { flex: 0 1 auto; min-width: 0; }
@media (max-width: 768px) {
	#earn_btc_tab .earn_hub_nav .drop-button { padding-inline: 9px; }
	.drop-summary-grid .reward_table_box { padding-inline: 8px; }
}

.drop-earn-summary {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.drop-summary-item { padding: 10px 12px; }
.drop-summary-item dt { color: var(--drop-surface-muted); font-size: .75rem; font-weight: 750; }
.drop-summary-item dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.drop-summary-item strong { font-variant-numeric: tabular-nums; }
.drop-summary-item small { display: block; margin-top: 2px; color: var(--drop-surface-muted); }
@media (max-width: 640px) {
	.drop-earn-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.drop-earn-summary > :last-child { grid-column: 1 / -1; }
	.drop-earn-summary > :last-child dd { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; }
}

.drop-value-card {
	width: min(100%, 34rem);
	margin: 16px auto;
	text-align: start;
}
.drop-value-card h3 {
	margin: 0;
	padding: 12px 14px;
	border-radius: 14px 14px 0 0;
	background: var(--drop-surface-paper);
	color: var(--drop-surface-ink);
	font-size: 1rem;
	font-weight: 800;
}
.drop-value-list { margin: 0; }
.drop-value-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 8px 12px;
	padding: 10px 14px;
	border-top: 1px solid var(--drop-surface-line);
	font-size: .875rem;
}
.drop-value-row :is(label, dt) { color: var(--drop-surface-ink); font-weight: 700; margin: 0; }
.drop-value-row dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.drop-value-total { background: var(--drop-surface-tint); font-weight: 800; }
input.drop-form-input[type="text"] {
	width: 100%;
	height: auto;
	min-height: 42px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--drop-surface-form-line);
	border-radius: var(--drop-button-radius);
	background: var(--drop-surface-paper);
	color: var(--drop-surface-ink);
	box-shadow: none;
}
input.drop-form-input[type="text"]::placeholder { color: var(--drop-surface-muted); opacity: 1; }
input.drop-form-input[type="text"]:focus { outline: 2px solid var(--drop-surface-accent); outline-offset: 1px; }
.drop-value-actions { padding: 12px 14px; text-align: center; }
.drop-value-actions p { margin: 0 0 8px; font-size: .8rem; color: var(--drop-surface-muted); }
@media (max-width: 480px) {
	.drop-value-field { grid-template-columns: 1fr; }
}

/* Shared table dividers and hover feedback. */
.drop-table.drop-table :is(th, td) + :is(th, td) {
	border-inline-start: 1px solid var(--drop-surface-line);
}
.drop-table.drop-table tbody tr:hover td {
	background: var(--drop-surface-tint);
}
.drop-card.drop-panel:has(.my_tickets_row_two) {
	overflow: hidden;
}
.drop-panel :is(.my_tickets_row_one, .my_tickets_row_two) > .lottery_winner_table_box + .lottery_winner_table_box {
	border-inline-start: 1px solid var(--drop-surface-line) !important;
}
.drop-panel .my_tickets_row_two > .lottery_winner_table_box {
	border-top: 1px solid var(--drop-surface-line) !important;
	border-radius: 0 !important;
}
.drop-panel .my_tickets_row_two:hover > .lottery_winner_table_box {
	background: var(--drop-surface-tint) !important;
}

/* Contest rankings use a legacy div grid instead of table markup. */
#wager_promotion_tab :is(#contest_winner_table_user_list, #contest_winner_table_referrer_list) .lottery_winner_table_box_container {
	border-top: 1px solid var(--drop-surface-line);
}
#wager_promotion_tab :is(#contest_winner_table_user_list, #contest_winner_table_referrer_list) .lottery_winner_table_box + .lottery_winner_table_box {
	border-left: 1px solid var(--drop-surface-line) !important;
}
#wager_promotion_tab :is(#contest_winner_table_user_list, #contest_winner_table_referrer_list) .lottery_winner_table_box_container:hover .lottery_winner_table_box:not(.gold) {
	background: var(--drop-surface-tint) !important;
}

/* Contest standings share the same surfaces and separators as other tables. */
#wager_promotion_tab .contest_live_panel {
	border: var(--drop-card-outline);
	border-radius: var(--drop-card-radius);
	background: var(--drop-surface-card);
	overflow: hidden;
	box-shadow: var(--drop-card-shadow);
}
#wager_promotion_tab .contest_live_panel .top_10_header_bg {
	background: var(--drop-surface-paper) !important;
	border: 0 !important;
	color: var(--drop-surface-ink) !important;
	text-shadow: none !important;
}
#wager_promotion_tab .contest_live_panel .top_10_header_cell {
	background: transparent !important;
	border-color: var(--drop-surface-line) !important;
	color: var(--drop-surface-ink) !important;
}
#wager_promotion_tab .contest_live_panel [class*="wager_rank_"][class*="_container"] {
	border: 0 !important;
	border-top: 1px solid var(--drop-surface-line) !important;
	background: var(--drop-surface-card) !important;
}
#wager_promotion_tab .contest_live_panel .wager_table_cell {
	background: transparent !important;
	border: 0 !important;
	border-right: 1px solid var(--drop-surface-line) !important;
	color: var(--drop-surface-ink) !important;
	font-weight: 500 !important;
}
#wager_promotion_tab .contest_live_panel [class*="wager_rank_"][class*="_container"]:hover {
	background: var(--drop-surface-tint) !important;
}
#wager_promotion_tab .contest_live_panel .wager_rank_1_container .wager_rank {
	color: var(--drop-surface-accent);
}

/* Keep the history within its game card and allow wide rows to scroll. */
.drop-game-surface .drop-bet-history-wrap.row {
	width: auto !important;
	max-width: none !important;
	margin: 16px 14px 18px !important;
}
.drop-game-surface .drop-bh-table {
	float: none !important;
	border: 1px solid var(--drop-surface-line) !important;
	border-radius: 12px;
	overflow: hidden;
	background: var(--drop-surface-card);
}
.drop-game-surface .drop-history-toolbar {
	border: 0 !important;
	border-bottom: 1px solid var(--drop-surface-line) !important;
	border-radius: 0 !important;
}
.drop-game-surface .drop-bh-rows :is(.drop-bh-date, .bet_history_row, .bh_head) {
	background: var(--drop-surface-card) !important;
	border-color: var(--drop-surface-line) !important;
	color: var(--drop-surface-ink) !important;
}
.drop-game-surface .drop-bh-rows .bh_cell { border-color: var(--drop-surface-line) !important; }
.drop-game-surface .drop-bh-rows .bh_head { background: var(--drop-surface-paper) !important; }
.drop-game-surface .drop-bh-rows .bh-entry:hover .bet_history_row { background: var(--drop-surface-tint) !important; }
.drop-game-surface .drop-history-toolbar .older_newer_button_a:disabled {
	opacity: .5 !important;
}
@media (max-width: 600px) {
	#wager_promotion_tab .contest_live_panel {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	#wager_promotion_tab .contest_live_panel :is(.top_10_header_bg, #wager_promotion_wager_contest, #wager_promotion_ref_contest) {
		min-width: 480px;
	}
}

@media (max-width:768px) {
  #main_content #drop_faucet_subtabs { width:fit-content; max-width:100%; margin:14px auto 8px; gap:5px; }
  #main_content #drop_faucet_subtabs .drop-faucet-subtab {
    flex:0 1 auto; min-width:0; min-height:38px; height:auto; padding:6px 12px;
    font-size:.81rem; line-height:1.2; white-space:nowrap;
  }
}

/* Account screens share the same reading width and compact mobile controls. */
#main_content :is(#rewards_tab,#earn_btc_tab,#refer_tab,#tasks_tab,#wager_promotion_tab) .drop-page-title {
  margin:16px auto 12px; font-size:clamp(1.35rem,3vw,1.85rem); line-height:1.15;
}
#main_content :is(.drop-earn-summary,.drop-value-card) { max-width: min(100%,40rem); }
#main_content .drop-tasks-wrap .drop-tasks-sub { max-width:52ch; margin-inline:auto; color:var(--drop-surface-muted); line-height:1.45; }
@media(max-width:768px) {
  #main_content :is(#drop_refer_subtabs,.earn_hub_nav) .drop-button { min-width:0; min-height:38px; flex:0 1 auto; padding:6px 10px; font-size:.81rem; }
  #main_content :is(.drop-form-input,.drop-task-username,#referral_url_input) { font-size:16px; }
  #main_content .drop-value-row { padding:9px 12px; }
}

/* Savings and payment history share the same readable measure and table grid. */
#main_content #earn_btc_tab :is(.drop-ledger,.drop-earn-summary,.drop-page-details) {
  box-sizing: border-box; width: min(100%, 38rem); max-width: 100%; margin: 12px auto;
}
.drop-ledger { overflow: hidden; font-variant-numeric: tabular-nums; }
#main_content .drop-ledger .drop-ledger-title {
  margin: 0; padding: 10px 14px; font: 700 .88rem/1.4 system-ui,sans-serif; text-align: start;
  color: var(--drop-surface-ink); background: var(--drop-surface-paper); border-bottom: 1px solid var(--drop-surface-line);
}
#main_content .drop-ledger .drop-table { width: 100%; margin: 0; border: 0; border-radius: 0; table-layout: fixed; }
#main_content .drop-ledger .drop-table :is(th,td) {
  border-radius: 0; padding: .48rem .75rem; font-size: .86rem; line-height: 1.4; vertical-align: middle;
}
.drop-ledger .drop-table tbody th {
  border-top: 1px solid var(--drop-surface-line); background: var(--drop-surface-card); font-weight: 550;
}
.drop-ledger .drop-table tbody tr:hover th { background: var(--drop-surface-tint); }
.drop-ledger .drop-table label { margin: 0; font: inherit; color: inherit; }
#main_content .drop-ledger input.drop-form-input { width: min(100%,12rem); height: 36px; margin: 0 0 0 auto; text-align: end; }
#interest_history_table :is(th,td):nth-child(n+2) { text-align: end; }
#interest_history_empty { margin: 0; padding: 12px; color: var(--drop-surface-muted); }
@media (max-width: 480px) {
  #main_content .drop-ledger .drop-table :is(th,td) { font-size: .78rem; padding: .5rem .35rem; }
}

/* One line per bet. Narrow screens put time, stake and net first; swipe for the rest. */
#main_content .drop-game-surface .drop-bh-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
#main_content .drop-bh--std { --history-width: 620px; --history-cols: 38px 74px 80px minmax(100px,1fr) minmax(96px,1fr) minmax(100px,1fr) 70px; }
#main_content .drop-bh--dice { --history-width: 740px; --history-cols: 38px 74px 70px 55px 57px minmax(94px,1fr) 65px minmax(94px,1fr) 51px 64px; }
#main_content .drop-game-surface .drop-bh-rows { min-width: var(--history-width); }
#main_content .drop-game-surface .drop-bh-rows .bet_history_row {
  display: grid !important; grid-template-columns: var(--history-cols); grid-template-areas: none;
  min-width: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--drop-surface-line);
}
#main_content .drop-game-surface .drop-bh-rows .bh_cell {
  grid-area: auto !important; min-height: 36px; padding: 4px; align-items: center; justify-content: center;
  font-size: .78rem; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap;
  border: 0; border-inline-end: 1px solid var(--drop-surface-line);
}
#main_content .drop-game-surface .bh_cell[data-label]::before { content: none; }
#main_content .drop-game-surface .bh-entry { margin: 0; border: 0; border-radius: 0; overflow: visible; }
#main_content .drop-game-surface .drop-bh-date { margin: 0; border-radius: 0; text-align: start; padding: 7px 10px; }
#main_content .drop-game-surface .drop-bh-rows .bh_head { font-weight: 700; }
#main_content .drop-game-surface .bh_verify { color: var(--drop-surface-accent); }
#main_content .drop-game-surface .bh_profit.win { color: #20694f; }
#main_content .drop-game-surface .bh_profit.loss { color: var(--drop-surface-accent); }
@media (max-width: 760px) {
  #main_content .drop-bh--std { --history-cols: 30px 66px minmax(88px,1fr) minmax(88px,1fr) 84px minmax(88px,1fr) 64px; }
  #main_content .drop-bh--dice { --history-cols: 30px 66px minmax(88px,1fr) minmax(88px,1fr) 70px 48px 55px 60px 45px 58px; }
  #main_content .drop-bh-rows .bh_cell:nth-child(1) { order: -4; }
  #main_content .drop-bh-rows .bh_cell:nth-child(2) { order: -3; }
  #main_content .drop-bh--std .bh_cell:nth-child(4), #main_content .drop-bh--dice .bh_cell:nth-child(6) { order: -2; }
  #main_content .drop-bh--std .bh_cell:nth-child(6), #main_content .drop-bh--dice .bh_cell:nth-child(8) { order: -1; }
  #main_content .drop-game-surface .drop-history-toolbar { display: grid; grid-template-columns: auto 1fr auto; }
  #main_content .drop-game-surface .drop-history-title { order: 0; width: auto; }
  #main_content .drop-game-surface .drop-history-toolbar-side { width: auto; }
}
#main_content .drop-game-surface .bh-expand { width: 28px; height: 32px; display: inline-grid; place-items: center; }
#main_content .drop-game-surface .bh-expand i { display: none; }
#main_content .drop-game-surface .bh-expand::after {
  content: ''; width: 7px; height: 7px; border: solid var(--drop-surface-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg);
}
#main_content .drop-game-surface .bh-expand[aria-expanded=true]::after { transform: rotate(45deg); }

.drop-bh-scroll:focus-visible { outline: 2px solid var(--drop-surface-accent); outline-offset: -2px; }

/* Account pages share a reading measure. Wider viewports pair independent tasks. */
body:has(#main_content, .drop-public-wrap) {
  background: var(--drop-surface-paper);
}
div#main_content.new_border_shadow.columns {
  --account-width: 52rem;
  --account-rule: 1px solid var(--drop-surface-line);
  --account-space: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  background: var(--drop-surface-card) !important;
  border-inline: 1px solid var(--drop-surface-line);
  box-shadow: none !important;
}
#main_content .drop-workspace-split,
#main_content .drop-gift-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--account-space);
  align-items: start;
  width: min(100%, var(--account-width));
  margin: 14px auto;
}
#main_content .drop-workspace-split > *,
#main_content .drop-gift-workspace > * {
  box-sizing: border-box; min-width: 0; width: 100%; max-width: none;
  margin: 0 !important;
}
#main_content .drop-workspace-split > .row > .columns {
  width: 100% !important; max-width: none; margin-inline: 0;
}
#main_content .drop-workspace-split > .row :is(.drop-panel, .drop-card) {
  background: var(--drop-surface-card); border: var(--account-rule);
  border-radius: 12px; box-shadow: none;
}
/* Referral controls and their data share the outer panel. */
#main_content #refer_tab .drop-panel table.drop-table--embedded {
  border: 0; border-radius: 0; box-shadow: none;
}
#main_content .drop-workspace-split input:not([type=checkbox]):not([type=radio]) { max-width: 100%; }
@media (min-width: 840px) {
  #main_content .drop-workspace-split,
  #main_content .drop-gift-workspace:has(#drop_gifts_available) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #main_content #refer_tab .drop-workspace-split { align-items: stretch; }
  #main_content #refer_tab .drop-workspace-split > .row > .drop-panel { height: 100%; }
}
#main_content .drop-page-heading, #main_content .drop-task-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(100%, var(--account-width));
  margin: 12px auto 16px; padding-block: 5px 12px; border-bottom: var(--account-rule);
  text-align: start;
}
#main_content .drop-page-heading h2,
#main_content .drop-task-heading h2 { margin: 0; text-align: start; }
.drop-heading-balance { display: grid; margin: 0; text-align: end; }
.drop-heading-balance dt {
  margin: 0; color: var(--drop-surface-muted); font: 650 .75rem/1.3 system-ui,sans-serif;
}
.drop-heading-balance dd {
  margin: 0; color: var(--drop-surface-accent); font: 780 1.45rem/1.2 system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
}
#main_content .drop-rewards-workspace :is(.drop-value-card,.drop-page-details) { width: 100%; margin: 0 0 10px; }
#main_content .drop-rewards-workspace .drop-page-details {
  border: var(--account-rule); border-radius: 12px; box-shadow: none;
}
#rewards_tab .drop-rewards-workspace .reward_category_container_main_div { padding: 0; }
#rewards_tab .drop-rewards-workspace .reward_category_container_main_div > h5 {
  margin: 0 0 9px; text-align: start; color: var(--drop-surface-ink); font-size: .98rem; font-weight: 750;
}
#rewards_tab .drop-reward-product {
  margin: 0; border: 0; border-top: var(--account-rule); border-radius: 0; box-shadow: none;
}
#rewards_tab .drop-reward-product .reward_product_name { padding: 8px 9px 0; border: 0 !important; background: transparent !important; }
#rewards_tab .drop-reward-product-actions { display: flex; align-items: center; gap: 5px; margin: 0; padding: 5px 8px 8px; }
#rewards_tab .drop-reward-product-actions::before, #rewards_tab .drop-reward-product-actions::after { content: none; }
#rewards_tab .drop-reward-product-actions > .columns { width: auto; padding: 0; }
#rewards_tab .drop-reward-product-actions > .columns:nth-child(2) { flex: 1; }
#rewards_tab .drop-reward-product-actions button { min-height: 36px; }

#main_content .drop-account-sheet {
  box-sizing: border-box; width: min(100%, 42rem); margin: 0 auto;
  border: 0; background: transparent;
}
#main_content #earn_btc_tab .drop-account-sheet > :is(.drop-earn-summary,.drop-page-details) {
  width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
}
#main_content .drop-account-sheet .drop-earn-summary { gap: 0; }
#main_content #earn_btc_tab .drop-account-sheet > .drop-ledger {
  width: 100%; max-width: none; margin: 10px 0;
}
#main_content .drop-account-sheet .drop-ledger .drop-ledger-title { border-top: 0; }
#main_content .drop-account-sheet .drop-summary-item {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 14px 12px;
}
#main_content .drop-account-sheet .drop-summary-item + .drop-summary-item { border-inline-start: var(--account-rule); }
#main_content #earn_btc_tab .drop-account-sheet > .drop-page-details:last-child {
  border-end-start-radius: inherit;
  border-end-end-radius: inherit;
}
#main_content .drop-account-sheet .drop-page-details > summary { border-top: var(--account-rule); }

#main_content .drop-payout-schedule, #main_content .drop-contest-archive {
  box-sizing: border-box; width: min(100%, var(--account-width)); margin: 0 auto;
  border: 0; border-bottom: var(--account-rule); border-radius: 0; box-shadow: none;
}
#main_content :is(.drop-payout-schedule,.drop-contest-archive,.drop-faq-group > details) > summary {
  padding: 12px 8px; font: 700 .94rem/1.45 system-ui,sans-serif;
  color: var(--drop-surface-ink); cursor: pointer;
}
#main_content :is(.drop-payout-schedule,.drop-contest-archive,.drop-faq-group > details) > summary:hover {
  color: var(--drop-surface-accent);
}

#main_content .drop-gift-workspace:not(:has(#drop_gifts_available)) { max-width: 34rem; }
#main_content #gifts_tab #drop_gifts_available { max-width: none !important; }
#main_content #gifts_tab .drop-gift-offer { border-color: var(--drop-surface-line); background: var(--drop-surface-card); }
#main_content #gifts_tab .drop-gift-offer.is-selected { border-color: var(--drop-surface-accent); box-shadow: inset 3px 0 var(--drop-surface-accent); }
#main_content #gifts_tab .drop-gift-offer-code { color: var(--drop-surface-accent); }
#main_content .drop-task-heading .drop-tasks-title, #main_content .drop-task-heading .drop-tasks-sub { text-align: start; }
#main_content .drop-task-heading .drop-tasks-sub { margin: 4px 0 0; padding: 0; }
#main_content .drop-task-heading .drop-tasks-spins {
  flex: none; margin: 0; padding-inline-start: 12px; border-inline-start: var(--account-rule);
}
#main_content .drop-task-heading .drop-tasks-spins span { color: var(--drop-surface-accent); }
#main_content #tasks_tab .drop-tasks-list { gap: 0; }
#main_content #tasks_tab .drop-task-row {
  border: 0; border-bottom: var(--account-rule); border-radius: 0; box-shadow: none; padding: 12px 5px;
}
#main_content #tasks_tab .drop-task-row.is-done { background: var(--drop-surface-paper); }
#main_content .drop-faq-group { text-align: start; }
#main_content #faq_tab .drop-faq-group h3 { text-align: start; margin: 6px 0; padding: 6px 8px; }
#main_content #faq_tab .drop-faq-group .drop-page-details {
  width: 100%; margin: 0; border: 0; border-bottom: var(--account-rule); border-radius: 0; box-shadow: none;
}
#main_content .drop-faq-group .drop-page-details-body { border: 0; padding: 0 8px 12px; line-height: 1.55; }
#main_content :is(#history_tab,#payouts_tab) :is(.drop-history-title,.drop-payouts-title) { margin-bottom: 3px; text-align: start; }
#main_content :is(#history_tab,#payouts_tab) :is(.drop-history-blurb,.drop-payouts-blurb) { margin-top: 0; text-align: start; color: var(--drop-surface-muted); }
#main_content #history_tab .drop-history-filters { justify-content: flex-start; gap: 6px; }
#main_content :is(.drop-history-table-wrap,.drop-payouts-table-wrap,.drop-gift-history) { max-width: 100%; }
@media (max-width: 640px) {
  #main_content .drop-account-sheet .drop-summary-item:last-child {
    border-inline-start: 0; border-top: var(--account-rule); padding: 9px 12px;
  }
  #main_content .drop-task-heading { flex-wrap: wrap; }
  #main_content .drop-task-heading .drop-tasks-spins { padding: 0; border: 0; }
  #main_content .drop-workspace-split { gap: 10px; }
}

.drop-public-wrap .drop-public-card {
  max-width: 52rem; margin-inline: auto; padding: clamp(18px, 3.4vw, 40px);
  border: 1px solid var(--drop-surface-line); border-radius: 16px;
  box-shadow: 0 2px 0 var(--drop-surface-line);
}
.drop-public-wrap .drop-public-card :is(h1,.drop-public-title) {
  text-align: start; text-transform: none; color: var(--drop-surface-ink); line-height: 1.2;
}
.drop-public-wrap .drop-public-card :is(p, li) { overflow-wrap: break-word; }
.drop-public-wrap .drop-public-card .drop-legal-list { max-width: 68ch; }
.drop-public-wrap .drop-public-card .drop-legal-list > li + li { border-top: 1px solid var(--drop-surface-line); padding-top: 12px; }
.drop-public-wrap .drop-public-card .drop-pf-panel { border: 0; box-shadow: none; }
.drop-public-wrap .drop-tickets-table thead th {
  color: var(--drop-surface-ink) !important;
  background: var(--drop-surface-paper) !important;
}
@media (max-width: 640px) {
  .drop-public-wrap .drop-tickets-table { table-layout: fixed; }
  .drop-public-wrap .drop-tickets-table th:nth-child(2) { width: 27% !important; }
  .drop-public-wrap .drop-tickets-table th:nth-child(3) { width: 27% !important; }
  .drop-public-wrap .drop-tickets-table :is(th,td) { padding: 10px 6px; }
  .drop-public-wrap .drop-tickets-table thead th {
    padding-inline: 4px; font-size: 12px; letter-spacing: 0; white-space: nowrap;
  }
  .drop-public-wrap .drop-tickets-table .drop-ticket-subject { font-size: .88rem; overflow-wrap: anywhere; }
  .drop-public-wrap .drop-tickets-table .drop-tickets-badge {
    padding: 3px 5px; font-size: 11px; letter-spacing: 0; white-space: nowrap;
  }
}
.drop-public-wrap :is(a,button,input,select,textarea):focus-visible,
#main_content .page_tabs :is(button,a,input,select,summary,textarea):focus-visible {
  outline: 2px solid var(--drop-surface-accent); outline-offset: 2px;
}

/* Show the cashback promotion on Faucet and Bonus Roll. */
body:not(:has(#free_play_tab.drop-tab-active)) #drop_cashback_bar { display: none !important; }
/* Use one outer measure for disclosures and their visible data. */
#main_content #wager_promotion_tab .drop-contest-section {
  width: min(100%, 38rem); max-width: none; margin: 16px auto;
}
#main_content details.drop-contest-section, #main_content .drop-payout-schedule { box-sizing: border-box; overflow: hidden; }
#main_content details.drop-contest-section:not(.drop-contest-archive) {
  background: var(--drop-surface-card); border: var(--account-rule); border-radius: 12px; box-shadow: none;
}
#main_content :is(.drop-contest-section,.drop-payout-schedule,.drop-refer-section) > summary,
#main_content .drop-account-block-title {
  margin: 0; padding: 10px 14px; background: var(--drop-surface-paper);
  color: var(--drop-surface-ink); font: 700 .9rem/1.4 system-ui,sans-serif; text-align: start;
}
#main_content :is(.drop-contest-section,.drop-payout-schedule,.drop-refer-section) > summary:focus-visible {
  outline-offset: -3px;
}
#main_content .drop-contest-section .drop-page-details-body p,
#main_content .drop-refer-section .drop-page-details-body p {
  font-size: .875rem; line-height: 1.55; text-align: start;
}
#main_content .drop-contest-section .drop-page-details-body p span[style] {
  color: var(--drop-surface-ink) !important; font-weight: 700;
}
#main_content .drop-contest-stats, #main_content .drop-contest-archive-content { display: flow-root; }
#main_content .drop-archive-scroll {
  clear: both; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
}
#main_content .drop-archive-scroll:focus-visible { outline: 2px solid var(--drop-surface-accent); outline-offset: -2px; }
#main_content .drop-archive-list {
  display: grid; grid-template-columns: 1.8rem minmax(6rem, 1.15fr) repeat(2, minmax(max-content, 1fr));
}
#main_content .drop-archive-list > * { grid-column: 1 / -1; }
#main_content .drop-archive-list .lottery_winner_table_box_container {
  display: grid; grid-template-columns: subgrid;
}
#main_content .drop-contest-archive-content .lottery_winner_table_box_container::before,
#main_content .drop-contest-archive-content .lottery_winner_table_box_container::after { content: none; }
#main_content .drop-contest-archive-content .lottery_winner_table_box_container > .columns {
  display: flex; align-items: center; justify-content: flex-end; width: auto; min-width: 0; height: auto;
  padding: 8px 5px; border-radius: 0 !important; line-height: 1.35; font-size: .8rem;
}
#main_content .drop-archive-list .lottery_winner_table_box_container > .columns:nth-child(n+3) {
  white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums;
}
#main_content .drop-contest-archive-content .lottery_winner_table_box_container > .columns:nth-child(1) { justify-content: center; }
#main_content .drop-contest-archive-content .lottery_winner_table_box_container > .columns:nth-child(2) { justify-content: flex-start; }
#main_content .drop-contest-archive-content .contest_empty_row { clear: both; font-size: .85rem; color: var(--drop-surface-muted); background: var(--drop-surface-card); }
#main_content #free_play_payout_table .drop-table :is(th,td) { border-radius: 0; }
#main_content .drop-refer-section .drop-page-details-body a { color: var(--drop-surface-accent); }
#main_content .drop-contest-archive-content > .drop-panel { border: 0; border-radius: 0; box-shadow: none; }
#main_content #drop_contest_prev_subtabs { padding-block: 8px; }
#main_content #wager_contest_end { max-width: 100%; }
#main_content .drop-refer-section { width: min(100%, var(--account-width)); margin: 14px auto; }
#main_content .drop-account-block > table { width: 100%; margin: 0; table-layout: fixed; border: 0; }
#main_content .drop-account-block table :is(th,td) {
  padding: 9px 12px; font-size: .82rem; line-height: 1.4;
  border-radius: 0; background: var(--drop-surface-card);
}
#main_content .drop-account-block thead th { background: var(--drop-surface-paper); }
#main_content .drop-account-block tbody th {
  text-align: start; width: 43%; color: var(--drop-surface-muted); border-top: var(--account-rule); font-weight: 650;
}
#main_content .drop-account-block tbody tr:hover :is(th,td) { background: var(--drop-surface-tint); }
#main_content .drop-account-block td { font-variant-numeric: tabular-nums; }
#main_content .drop-account-block td[colspan] { text-align: center; color: var(--drop-surface-muted); }
#main_content .drop-account-block td label, #main_content .drop-account-block th label { margin: 0; font: inherit; color: inherit; }
#main_content .drop-profile-link {
  display: grid; gap: 5px; padding: 10px 12px; border-top: var(--account-rule); text-align: start;
}
#main_content .drop-profile-link label { margin: 0; color: var(--drop-surface-muted); font: 650 .78rem/1.4 system-ui,sans-serif; }
#main_content .drop-account-block input[readonly] {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; height: auto; padding: 6px 8px;
  margin: 0; text-align: start; font: 500 .83rem/1.35 system-ui,sans-serif;
}
/* Keep identity, wallet links and account totals within a single compact overview. */
#main_content .drop-profile-overview {
  box-sizing: border-box; gap: 0; align-items: stretch; overflow: hidden;
  background: var(--drop-surface-card); border: var(--drop-card-outline);
  border-radius: var(--drop-card-radius); box-shadow: var(--drop-card-shadow);
}
#main_content .drop-profile-overview > .drop-account-block {
  display: flex; flex-direction: column; overflow: visible; border: 0; border-radius: 0; box-shadow: none;
}
#main_content .drop-profile-overview > .drop-profile-stats { border-block-start: var(--drop-table-heading-rule); }
#main_content .drop-profile-overview .drop-fact-table { flex: 1 0 auto; }
#main_content .drop-profile-overview .drop-account-block-title { padding-block: 8px; }
#main_content .drop-profile-overview .drop-fact-table :is(th,td) { padding: 6px 10px; }
#main_content .drop-profile-overview .drop-fact-table th { width: 55%; }
#main_content .drop-profile-overview .drop-fact-table td {
  white-space: normal; overflow-wrap: anywhere; color: var(--drop-surface-ink);
}
#main_content .drop-profile-details .drop-fact-table th { width: 36%; }
#main_content .drop-profile-details .drop-fact-table td { text-align: start; }
#main_content .drop-profile-overview #acct_stat_balance {
  font-weight: 750; font-size: .97rem; line-height: 1.3;
}
#main_content .drop-profile-overview .drop-profile-link { gap: 3px; padding: 6px 10px 7px; }
#main_content .drop-profile-address textarea[readonly] {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 32px; height: auto; padding: 5px 6px;
  margin: 0; resize: none; text-align: start; overflow-wrap: anywhere;
  color: var(--drop-surface-ink); background: var(--drop-surface-paper); box-shadow: none;
  border: 1px solid var(--drop-surface-form-line); border-radius: 8px;
  font: 500 .82rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; field-sizing: content;
}
#main_content .drop-profile-address textarea:focus-visible {
  outline: 2px solid var(--drop-surface-accent); outline-offset: 2px;
}
#main_content .drop-profile-address + .drop-profile-link { border-top: 0; padding-top: 0; }
@media (max-width: 375px) {
  #main_content .drop-profile-overview .drop-fact-table :is(th,td) { padding: 5px 7px; }
  #main_content .drop-profile-details .drop-fact-table th { width: 40%; }
  #main_content .drop-profile-overview #acct_stat_balance { font-size: .88rem; }
}
@media (min-width: 840px) {
  #main_content .drop-profile-overview { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
  #main_content .drop-profile-overview > .drop-profile-stats {
    border-block-start: 0; border-inline-start: var(--drop-table-heading-rule);
  }
}
/* Profile settings share one outer frame, with a divider between disclosures. */
#main_content .drop-settings-group {
  box-sizing: border-box; width: min(100%, var(--account-width)); margin: 14px auto;
  border: var(--drop-card-outline); border-radius: var(--drop-card-radius); box-shadow: var(--drop-card-shadow);
  overflow: hidden; background: var(--drop-surface-card); color: var(--drop-surface-ink); text-align: start;
}
#main_content .drop-settings-group .drop-security-setting { margin: 0; }
#main_content .drop-security-setting + .drop-security-setting { border-block-start: var(--drop-table-heading-rule); }
#main_content .drop-security-setting > summary {
  display: flex; align-items: center; gap: 9px; min-height: 44px; box-sizing: border-box;
  padding: 10px 14px; cursor: pointer; list-style: none; color: inherit; font: 750 .91rem/1.4 system-ui,sans-serif;
}
#main_content .drop-security-setting > summary::-webkit-details-marker { display: none; }
#main_content .drop-security-setting > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin-inline-start: auto; margin-inline-end: 3px;
  border: solid var(--drop-surface-muted); border-width: 0 1.8px 1.8px 0; transform: rotate(-45deg);
}
#main_content .drop-security-setting[open] > summary {
  background: var(--drop-surface-paper); border-bottom: var(--drop-table-heading-rule);
}
#main_content .drop-security-setting[open] > summary::after { transform: rotate(45deg); }
#main_content .drop-security-setting > summary:hover { color: var(--drop-surface-accent); }
#main_content .drop-security-setting > summary:focus-visible { outline-offset: -3px; }
#main_content .drop-settings-status {
  padding: 2px 7px; border: var(--account-rule); border-radius: 99px; background: var(--drop-surface-card);
  color: var(--drop-surface-muted); font: 650 .72rem/1.3 system-ui,sans-serif;
}
#main_content .drop-settings-status.is-enabled { background: var(--drop-surface-tint); color: var(--drop-surface-ink); }
#main_content .drop-settings-body {
  display: grid; gap: 13px; margin: 0; padding: 14px clamp(12px,2vw,20px); text-align: start;
}
#main_content .drop-settings-field, #main_content .drop-settings-code {
  display: grid; gap: 5px; min-width: 0; padding: 0; margin: 0; border: 0;
}
#main_content .drop-settings-field > :is(label,dt), #main_content .drop-settings-code legend {
  margin: 0; padding: 0; color: var(--drop-surface-ink); font: 650 .8rem/1.4 system-ui,sans-serif;
}
#main_content .drop-settings-field input, #main_content .drop-2fa-code-box {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; height: auto;
  padding: 8px 10px; margin: 0; border: 1px solid var(--drop-surface-form-line); border-radius: var(--drop-button-radius);
  background: var(--drop-surface-card); color: var(--drop-surface-ink); box-shadow: none;
  font: 500 1rem/1.4 system-ui,sans-serif; text-align: start;
}
#main_content .drop-settings-field input[readonly], #main_content .drop-settings-hash dd {
  background: var(--drop-surface-paper); font: 500 .9rem/1.5 ui-monospace,monospace;
}
#main_content .drop-settings-hash dd {
  margin: 0; padding: 8px 10px; border-inline-start: 2px solid var(--drop-surface-line);
  overflow-wrap: anywhere; user-select: all;
}
#main_content .drop-settings-hash samp { font: inherit; }
#main_content .drop-settings-pair { display: grid; gap: 13px; grid-template-columns: repeat(2,minmax(0,1fr)); }
#main_content .drop-settings-body > button { justify-self: start; min-height: 42px; }
#main_content .drop-settings-body > button[aria-busy=true] { cursor: progress; }
#main_content .drop-settings-setup { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; }
#main_content #drop_two_factor_qrcode:not(:empty) {
  box-sizing: content-box; justify-self: start; padding: 16px; background: #fff; border: var(--account-rule); border-radius: 8px;
}
#main_content #drop_two_factor_qrcode > :is(img,canvas) { display: block; max-width: 100%; }
#main_content .drop-settings-setup-info { display: grid; gap: 6px; min-width: 0; }
#main_content .drop-settings-setup-info .drop-settings-field { margin-top: 5px; }
#main_content .drop-settings-setup-info p, #main_content .drop-settings-hint {
  margin: 0; color: var(--drop-surface-muted); font: 500 .8rem/1.45 system-ui,sans-serif; text-align: start;
}
#main_content fieldset.drop-settings-code { background: transparent; border-radius: 0; }
#main_content .drop-settings-code legend { margin-bottom: 5px; background: transparent; }
#main_content .drop-2fa-code-group { display: grid; gap: 5px; grid-template-columns: repeat(6,minmax(0,2.55rem)); }
#main_content input.drop-2fa-code-box { min-height: 44px; padding-inline: 0; font-weight: 750; text-align: center; }
#main_content .drop-profile-referral-controls { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
#main_content .drop-profile-referral-controls input { flex: 1 1 0; width: 0; min-width: 0; }
#main_content .drop-profile-referral-controls .drop-profile-referral-copy {
  flex: none; min-height: 36px; padding: 6px 10px; border-color: var(--drop-surface-ink) !important;
}
@media (max-width: 560px) {
  #main_content .drop-settings-pair, #main_content .drop-settings-setup { grid-template-columns: minmax(0,1fr); }
  #main_content .drop-settings-setup { gap: 10px; }
  #main_content .drop-settings-body > button { min-height: 44px; }
  #main_content .drop-profile-referral-controls .drop-profile-referral-copy { min-height: 44px; }
}

#main_content .drop-account-block .drop-refer__pager { margin: 0; padding: 8px; border-top: var(--account-rule); }
@media (max-width: 480px) {
  #main_content .drop-account-block table :is(th,td) { padding: 8px 9px; }
}
#main_content #rewards_tab .drop-page-heading .drop-page-title { margin: 0; text-align: start; }
#main_content #rewards_tab:has(.drop-rewards-empty) :is(.drop-page-heading,.drop-rewards-workspace) { max-width: 38rem; }
#main_content .drop-rewards-empty { grid-template-columns: minmax(0, 1fr); }
#main_content .drop-catalog-empty {
  margin: 0; padding-block: 10px; border-block-start: var(--account-rule);
  color: var(--drop-surface-muted); font: 500 .88rem/1.5 system-ui,sans-serif; text-align: start;
}
#main_content #faq_tab .drop-faq-group #contact_form { margin-block-end: 0; }
#main_content #faq_tab .drop-faq-group #contact_form textarea { height: 7rem; }

/* Keep data in native rows; the table, not the page, scrolls for additional columns. */
#main_content .drop-transaction-scroll {
  width: 100%; min-width: 0; max-width: 100%; overflow-x: auto;
  overscroll-behavior-x: contain; box-sizing: border-box;
}
#main_content .drop-transaction-scroll:focus-visible {
  outline: 2px solid var(--drop-surface-accent); outline-offset: 2px;
}
#main_content .drop-transaction-scroll table.drop-transaction-table {
  width: max-content; min-width: 100%; max-width: none; margin: 0;
  table-layout: auto; border: 0; border-collapse: separate; border-spacing: 0; box-shadow: none;
  font-variant-numeric: tabular-nums; background: var(--drop-surface-card);
}
#main_content .drop-transaction-scroll table.drop-transaction-table :is(th,td) {
  width: auto; min-width: 0; padding: .56rem .65rem; border: 0; border-radius: 0;
  border-inline-end: var(--account-rule); border-block-end: var(--account-rule);
  text-align: start; vertical-align: middle; white-space: nowrap; overflow-wrap: normal; word-break: normal;
}
#main_content .drop-transaction-scroll table.drop-transaction-table th {
  background: var(--drop-surface-paper); color: var(--drop-surface-ink) !important; font-weight: 700;
}
#main_content .drop-transaction-scroll table.drop-transaction-table tr > :last-child { border-inline-end: 0; }
#main_content .drop-transaction-scroll table.drop-transaction-table tbody tr:last-child td { border-block-end: 0; }
#main_content .drop-transaction-scroll table.drop-transaction-table tbody tr:hover td { background: var(--drop-surface-tint); }
#main_content .drop-transaction-scroll .drop-history-amount { white-space: nowrap; }
#main_content .drop-transaction-scroll .drop-history-status { background: var(--drop-surface-paper); color: var(--drop-surface-ink); }
#main_content .drop-transaction-scroll .drop-history-status.is-completed { background: #dcefe5; color: #20543b; }
#main_content .drop-transaction-scroll .drop-history-status:is(.is-pending,.is-processing,.is-unconfirmed) { background: #fff0d1; color: #6a480c; }
/* The outermost data panel owns the ink outline; inset tables only draw dividers. */
#main_content #refer_tab .drop-card.drop-panel,
#main_content .drop-gift-workspace .drop-gift-card,
#main_content :is(.drop-account-block, .drop-ledger, .drop-transaction-scroll, .drop-value-card, .drop-payout-schedule, .drop-contest-archive) {
  box-sizing: border-box; background: var(--drop-surface-card);
  border: var(--drop-card-outline); border-radius: var(--drop-card-radius); box-shadow: var(--drop-card-shadow);
}
#main_content #refer_tab .drop-card.drop-panel, #main_content .drop-account-block { overflow: hidden; }
#main_content .drop-ledger > .drop-transaction-scroll {
  border: 0; border-radius: 0; box-shadow: none;
}
#main_content .drop-account-block > .drop-account-block-title,
#main_content :is(.drop-account-block,.drop-contest-archive,.drop-payout-schedule)[open] > summary,
#main_content .drop-value-card > h3,
#main_content .drop-ledger > .drop-ledger-title {
  border-block-end: var(--drop-table-heading-rule);
}
#main_content .drop-value-card > h3 + .drop-value-row { border-top: 0; }
#main_content #refer_tab .drop-panel .my_tickets_row_two > .lottery_winner_table_box {
  border-top: var(--drop-table-heading-rule) !important;
}
#main_content #refer_tab .drop-panel > :is(.table_header_background,.gold,.green_prize_rank) {
  border-bottom: var(--drop-table-heading-rule) !important; font-weight: 700;
}
#main_content :is(.drop-account-block,.drop-ledger,#refer_tab) table.drop-table thead th,
#main_content .drop-transaction-scroll table.drop-transaction-table thead th {
  border-block-end: var(--drop-table-heading-rule); border-radius: 0;
}
#main_content :is(.drop-account-block,.drop-ledger,#refer_tab) table.drop-table tbody tr:first-child > :is(th,td) {
  border-block-start: 0;
}
#main_content #cashback_history_table .drop-transaction-scroll:focus-visible { outline-offset: -2px; }
@media (max-width: 640px) {
  #main_content .drop-transaction-scroll table.drop-transaction-table :is(th,td) { padding: .55rem .42rem; font-size: .78rem; }
  #main_content .drop-transaction-scroll .drop-history-amount { gap: 3px; }
  #main_content .drop-transaction-scroll .drop-history-amount img { display: none; }
}

@media (max-width: 340px) {
  #main_content #history_tab .drop-transaction-table :is(th,td):nth-child(-n+3) { padding-inline: 3px; }
  #main_content #history_tab :is(.drop-history-type,.drop-history-status) { padding-inline: 4px; }
}

#main_content .drop-cashback-page {
  width: min(100%, var(--account-width)); margin-inline: auto;
  padding: clamp(12px, 2.6vw, 24px) clamp(4px, 1.4vw, 14px) 22px;
  box-sizing: border-box; text-align: start; color: var(--drop-surface-ink);
}
.drop-cashback-page [hidden] { display: none !important; }
#main_content .drop-cashback-page p { text-align: start; }
.drop-cashback-header { margin-block-end: 12px; }
.drop-cashback-header h2 {
  margin: 0 0 4px; color: var(--drop-surface-ink);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.15; font-weight: 800;
}
#main_content .drop-cashback-page #cashback_headline {
  max-width: 60ch; margin: 0 0 12px;
  color: var(--drop-surface-muted) !important; font-size: .9rem; line-height: 1.5;
}
#main_content .drop-cashback-weekly table.drop-transaction-table { width: 100%; }
#main_content .drop-cashback-weekly table.drop-transaction-table tr > :first-child {
  width: 39%; white-space: normal; overflow-wrap: anywhere;
}
#main_content .drop-cashback-weekly table.drop-transaction-table tbody th {
  background: var(--drop-surface-card);
}
#main_content .drop-cashback-weekly table.drop-transaction-table tbody tr:hover th {
  background: var(--drop-surface-tint);
}
#main_content .drop-cashback-weekly table.drop-transaction-table tbody tr:last-child th { border-block-end: 0; }
.drop-cashback-range {
  display: block; margin-block-start: 3px; color: var(--drop-surface-muted);
  font-size: .8em; line-height: 1.35; font-weight: 500;
}
.drop-cashback-range:empty { display: none; }
.drop-cashback-value { white-space: nowrap; }
.drop-cashback-value small { color: var(--drop-surface-muted); font-size: .8em; }
.drop-cashback-claim-cell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.drop-cashback-claim-row:has(#cashback_claim_btn:not([hidden])) #cashback_claimable_amount { color: var(--drop-surface-accent); }
#main_content #cashback_claim_btn { min-height: 38px; margin: 0; }
#cashback_claim_status {
  max-inline-size: 15ch; color: var(--drop-surface-muted);
  font-size: .86em; font-weight: 700; white-space: normal; overflow-wrap: anywhere;
}
#cashback_claim_status[data-claimed] { color: #20543b; }
.drop-cashback-load, .drop-cashback-empty {
  margin: 0; padding: 12px 16px; color: var(--drop-surface-muted); font-size: .9rem;
}
#main_content .drop-cashback-page #cashback_history_table {
  width: 100%; margin: 16px 0 10px; overflow: hidden;
}
.drop-cashback-page #cashback_history_rows td:nth-child(3) {
  color: var(--drop-surface-accent); font-weight: 700;
}
#main_content .drop-cashback-help {
  width: 100%; margin: 0; border: var(--account-rule); border-radius: 10px;
  background: var(--drop-surface-card); box-shadow: none; box-sizing: border-box;
}
.drop-cashback-help dl {
  margin: 0; padding: 12px clamp(12px, 2.5vw, 22px); border-block-start: var(--account-rule);
  font-size: .9rem; line-height: 1.5;
}
.drop-cashback-help dt { margin: 0 0 2px; font-weight: 800; }
.drop-cashback-help dd + dt {
  margin-block-start: 12px; padding-block-start: 10px; border-block-start: var(--account-rule);
}
.drop-cashback-help dd { margin: 0; color: var(--drop-surface-muted); }
@media (max-width: 560px) {
  .drop-cashback-value small { display: block; }
  .drop-cashback-claim-cell { align-items: flex-start; flex-direction: column; }
  #main_content #cashback_claim_btn { min-height: 44px; padding-inline: 8px; font-size: .82rem; }
  #main_content .drop-cashback-weekly .drop-transaction-table :is(th,td):is(:first-child,:last-child) {
    min-width: 7ch;
    white-space: normal;
  }
  #main_content .drop-payouts-table-wrap table.drop-payouts-table :is(th,td) {
    padding-inline: .3rem;
    font-size: .76rem;
  }
  .drop-payouts-table .drop-payouts-amount img { display: none; }
  #payouts_tab .drop-payouts-table .drop-payouts-status { padding-inline: 5px; }
}
@media (max-width: 640px) {
  .drop-bh-table .drop-bh-scroll {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }
}
