/*
 * Rasta Santa's scratch card, on /games/scratch, loaded on that page only. The 2006 sheets stay
 * as they are: the card is made of their white and green boxes, of the 2006 advent calendar's
 * red window (its red and its edge: brown, white, gold; public/advent/2006/panel.png), Rasta
 * Santa and the Volter font of the same calendar, holly of habbo.co.uk's Christmas pages and
 * Christmas furni of the game; this sheet only places them.
 */

@font-face { font-family: SantaVolter; src: url(../advent/fonts/volter.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: SantaVolter; src: url(../advent/fonts/volter-bold.woff2) format('woff2'); font-weight: 700; font-display: block; }

#scratch [hidden] {
	display: none !important;
}

.scratch-card {
	position: relative;
	width: 476px;
	margin: 6px auto 4px auto;
	text-align: left;
}

/* The red window of the calendar: its red, and its edge from the outside in. */
.santa-ticket {
	position: relative;
	padding: 10px 12px 10px 12px;
	background: #ad0000;
	border: 1px solid #ffcf33;
	border-radius: 4px;
	box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #7a1b12;
	color: #ffffff;
}

.santa-holly {
	position: absolute;
	top: -12px;
	z-index: 2;
}

.santa-holly-left {
	left: -12px;
}

.santa-holly-right {
	right: -12px;
}

/* --- head: Rasta Santa, the name of the card and the ticket's number --- */

.santa-head {
	position: relative;
	height: 96px;
}

/* Rasta Santa pointing, cut out of his 152 x 158 picture. */
.santa-picture {
	float: left;
	width: 64px;
	height: 96px;
	margin: 0 12px 0 34px;
	overflow: hidden;
}

.santa-picture img {
	margin: -24px 0 0 -40px;
}

.santa-title {
	padding-top: 22px;
	font-family: SantaVolter, Verdana, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
	color: #ffcf33;
	-webkit-font-smoothing: none;
	text-transform: uppercase;
}

.santa-number {
	position: absolute;
	right: 2px;
	bottom: 2px;
	font-family: SantaVolter, Verdana, sans-serif;
	font-size: 9px;
	-webkit-font-smoothing: none;
}

/* --- the play area: Rasta Santa's presents, then the Habbo's, under the coating --- */

.scratch-play {
	position: relative;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.santa-label {
	padding: 4px 0 5px 0;
	font-family: SantaVolter, Verdana, sans-serif;
	font-size: 9px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	-webkit-font-smoothing: none;
}

.santa-row {
	width: 224px;
	margin: 0 auto 4px auto;
}

.santa-box {
	float: left;
	width: 106px;
	margin-right: 12px;
}

.santa-box:nth-child(2) {
	margin-right: 0;
}

.scratch-cell {
	float: left;
	width: 106px;
	margin: 0 8px 4px 0;
}

.scratch-cell:nth-child(4n) {
	margin-right: 0;
}

.scratch-window {
	display: block;
	height: 66px;
	line-height: 66px;
	color: #000000;
	text-align: center;
	overflow: hidden;
}

.scratch-cell .scratch-window {
	height: 82px;
	line-height: normal;
}

/* The furni in the middle of its place, the amount on the same line in every box. */
.scratch-furni {
	display: block;
	height: 62px;
	line-height: 62px;
	padding-top: 2px;
}

/* The game's furni, twice their size, pixel for pixel. */
.scratch-window img {
	vertical-align: middle;
	zoom: 2;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.scratch-amount {
	display: block;
	line-height: 14px;
	font-size: 10px;
	white-space: nowrap;
}

.scratch-amount b {
	font-size: 12px;
}

/* Without a ticket, the card is greyed: nothing to scratch until one is bought. */
.scratch-preview .santa-ticket {
	filter: grayscale(1);
	opacity: .55;
}

.scratch-preview .scratch-coat {
	cursor: pointer;
}

.scratch-preview-hint {
	margin: 8px 0 0 0;
	text-align: center;
}

/* Until the coating is laid over them, the boxes do not show. */
.scratch-pending .scratch-box {
	visibility: hidden;
}

/* The winning present and Rasta Santa's: the green box of the site in place of the white one. */
.scratch-box.is-lit div.content-white {
	background-image: url(../images/box-scale/green-tl.gif);
}

.scratch-box.is-lit div.content-white-body {
	background-image: url(../images/box-scale/green-tr.gif);
}

.scratch-box.is-lit div.content-white-bottom {
	background-image: url(../images/box-scale/green-bl.gif);
}

.scratch-box.is-lit div.content-white-bottom-body {
	background-image: url(../images/box-scale/green-br.gif);
}

/* The coating and its dust: drawn at one canvas pixel per CSS pixel and scaled without
   smoothing on high-density screens, like the hotel's pixel art. */
.scratch-play canvas {
	position: absolute;
	left: 0;
	top: 0;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.scratch-coat {
	cursor: url(../images/navi/tab_icon_10_coins.gif) 12 9, pointer;
	touch-action: none;
}

.scratch-fx {
	pointer-events: none;
}

/* On a touch screen there is no cursor: the coin follows the finger. */
.scratch-coin {
	position: absolute;
	display: none;
	pointer-events: none;
	z-index: 3;
}

/* --- result and buttons --- */

.scratch-result {
	margin-top: 3px;
	color: #000000;
}

/* Ahead of the boxes' own spacing (1em under every title and paragraph). */
#scratch .scratch-outcome h4 {
	padding: 4px 0 6px 0;
	font-size: 13px;
}

#scratch .scratch-outcome p {
	margin: 0;
	padding-bottom: 11px;
}

.scratch-outcome-image {
	float: left;
	margin: 0 10px 0 0;
}

.scratch-sending {
	text-align: center;
	font-weight: bold;
}

.scratch-actions {
	margin-top: 4px;
}

.scratch-all {
	margin: 0;
}

/* The hint on the line of "Scratch it all", the rule of the card under it. */
.scratch-hint {
	float: left;
	width: 300px;
	font-size: 10px;
	line-height: 18px;
}

.scratch-rule {
	font-style: italic;
	line-height: 12px;
}

/* The win's coin shower, above the whole card. */
.scratch-shower {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 5;
}

.scratch-shower img {
	position: absolute;
}

/* --- around the card --- */

.scratch-furni-row {
	text-align: center;
}

.scratch-furni-row img {
	margin: 0 3px;
	vertical-align: bottom;
}

.scratch-stock {
	line-height: 1.6;
}
