/*
 * Layout/text styling is scoped to .lcg-gate-inner (the gate UI) and the download-context
 * unlocked box. Injected read-more sections (#txt-display) therefore inherit nothing from the
 * gate and look like normal, non-gated sections.
 */
.lcg-gate { margin: 10px 0 50px; }
.lcg-gate-inner { overflow: hidden; text-align: center; }
.lcg-gate[data-context="download"] .lcg-unlocked { text-align: center; }
.lcg-gate-inner p,
.lcg-gate[data-context="download"] .lcg-unlocked p { margin: 0.5em; font-size: 15px; }
.lcg-gate-inner a:hover { text-decoration: none; }
.lcg-gate [hidden] { display: none !important; }
/* While the page script checks a recently unlocked browser, keep the form's space but not its content. */
.lcg-gate.lcg-pending .lcg-gate-inner { visibility: hidden; }
/* Room for the theme's fixed header when the script scrolls to the gate. */
.lcg-gate { scroll-margin-top: 90px; }
.lcg-gate-inner .lcg-title { margin: 0.5em 0 0.6em; font-size: 17px; font-weight: bold; line-height: 1.5; }
/* Steps and notes: a left-aligned block centred in the gate. Theme resets remove list numbers, so set them here. */
.lcg-steps, .lcg-notes { display: inline-block; max-width: 100%; margin: 0; text-align: left; box-sizing: border-box; }
.lcg-steps { padding: 0 0 0 1.6em; font-size: 15px; line-height: 1.9; list-style: decimal outside; }
.lcg-steps li { display: list-item; margin: 0; padding: 0; list-style: decimal outside; font-weight: bold; }
/* Keeps the account name on one line when it fits; a very long name can still wrap inside. */
.lcg-steps .lcg-account { display: inline-block; max-width: 100%; }
.lcg-notes { padding: 0; margin-top: 14px; font-size: 13px; line-height: 1.7; color: #555; list-style: none; }
.lcg-notes li { margin: 0; padding: 0 0 0 1em; text-indent: -1em; list-style: none; }
.lcg-notes li::before { content: "・"; }
.lcg-friend { margin: 12px 0; }
.lcg-qr-wrap img { max-width: 220px; height: auto; }
.lcg-friend-btn {
	display: block; width: 250px; margin: 10px auto 0; padding: 15px;
	background: #06C755; color: #FFF; font-weight: bold; text-decoration: none; border-radius: 3px;
}
.lcg-friend-btn:hover { opacity: 0.85; }
.lcg-form { margin: 16px 0 0; }
.lcg-form .lcg-code { width: 340px; max-width: 70%; padding: 10px; box-sizing: border-box; }
.lcg-form .lcg-submit { padding: 8px 12px; cursor: pointer; }
.lcg-msg { min-height: 1.5em; margin: 0.5em; font-size: 15px; color: #C00; }
.lcg-msg:empty { min-height: 0; }
.lcg-or { margin: 20px 0 10px; font-size: 15px; font-weight: bold; }
.lcg-old p { margin: 0.5em; font-size: 15px; }
.lcg-old .box-keyword-a { margin: 0 0.8em; font-size: 1em; color: #0059B2; font-weight: bold; text-decoration: underline; }
.lcg-old .box-keyword-a:hover { text-decoration: none; }
.lcg-gate .btn-download,
.lcg-gate .btn-download-true,
.lcg-ad-wait.btn-download-true { margin: 20px auto 0; width: 250px; text-align: center; }
.lcg-gate .btn-download a,
.lcg-download-btn { display: block; padding: 15px; color: #FFF; background: #00B22D; font-size: 1em; text-decoration: none; cursor: pointer; }
.lcg-download-btn.disable { background: #CCC; cursor: default; }
#txt-display { display: none; }

/*
 * The download page keeps the theme's <div id="box-keyword"> wrapper. Its rules
 * (#box-keyword p { float:right } on PC; #box-keyword a { color; font-size:115% } on SP;
 * .btn-download-true div { margin-top; padding } on SP) have an id or element weight that beats the
 * single-class selectors above, so neutralise them with #box-keyword-prefixed selectors.
 */
#box-keyword .lcg-gate p { float: none; }
#box-keyword .lcg-gate .lcg-friend-btn,
#box-keyword .lcg-gate .btn-download a { color: #FFF; font-size: 1em; text-decoration: none; }
#box-keyword .lcg-gate .lcg-friend-btn { font-weight: bold; }
#box-keyword .lcg-gate .btn-download a { font-weight: normal; }
#box-keyword .lcg-gate .lcg-old .box-keyword-a { color: #0059B2; font-size: 1em; font-weight: bold; text-decoration: underline; }
#box-keyword .lcg-gate .lcg-old .box-keyword-a:hover { text-decoration: none; }
.btn-download-true .lcg-download-btn { margin: 0; color: #FFF; font-weight: normal; }

@media (max-width: 767px) {
	.lcg-gate { margin: 0 auto 50px; }
	.lcg-gate-inner { width: 95%; margin: 0 auto; }
	/* Phones: code box and submit button each take a full row. 16px text stops iOS zooming in on focus. */
	.lcg-form .lcg-code { display: block; width: 100%; max-width: 100%; margin: 0 0 10px; padding: 12px; font-size: 16px; }
	.lcg-form .lcg-submit {
		display: block; width: 100%; padding: 13px; font-size: 16px; font-weight: bold;
		color: #FFF; background: #333; border: 0; border-radius: 3px; -webkit-appearance: none; appearance: none;
	}
	.lcg-gate .btn-download a, .lcg-download-btn { padding: 10px; font-size: 1.2em; }
	#box-keyword .lcg-gate .btn-download a { font-size: 1.2em; }
	.lcg-friend-btn { width: 90%; }
	/* 250px is too narrow for the larger phone font: the 11-character button labels wrapped to two lines. */
	.lcg-gate .btn-download,
	.lcg-gate .btn-download-true,
	.lcg-ad-wait.btn-download-true { width: 90%; max-width: 340px; }
}
