/*
 * The dice table of /games/dice, loaded on that page only. The 2006 sheets stay as they are:
 * the table is the game client's scene in a frame, the bet and the moves are plain form
 * controls and buttons of the site.
 */

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

/* The frame of the scene: the room of the client (720 x 540) shows its middle, black around
   the walls as in the hotel. The site's blue box stands in the middle until the scene is
   ready, or for good if it never is, as at the Lido bar. */
.dice-stage {
	position: relative;
	height: 340px;
	overflow: hidden;
	margin-bottom: 8px;
}

.dice-stage.has-scene {
	background-color: #000000;
}

.dice-stage.has-scene .dice-pool {
	display: none;
}

/* The site's blue box, as wide as it goes: 330 px inside its 7 px edges. */
.dice-pool {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 344px;
	margin: -99px 0 0 -172px;
}

.dice-picture {
	position: relative;
	width: 330px;
	height: 184px;
	overflow: hidden;
}

/* The furni and the Habbos at one image pixel per CSS pixel, like the hotel's. */
.dice-furni,
.dice-habbo {
	position: absolute;
	display: block;
	pointer-events: none;
	image-rendering: -moz-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

.dice-scene-frame {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dice-center {
	text-align: center;
}

/* The bet before a game: a white square for each amount, the chosen one framed in black on
   yellow. */
.dice-row {
	margin: 0 0 8px 0;
}

.dice-label {
	display: inline-block;
	width: 80px;
	font-weight: bold;
}

.dice-chip {
	display: inline-block;
	margin-right: 4px;
	cursor: pointer;
}

.dice-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dice-chip span {
	display: inline-block;
	min-width: 28px;
	height: 24px;
	padding: 0 2px;
	line-height: 24px;
	text-align: center;
	font-weight: bold;
	font-size: 12px;
	background-color: #ffffff;
	border: 1px solid #a6a6a6;
}

.dice-chip input:checked + span {
	border: 2px solid #000000;
	min-width: 26px;
	height: 22px;
	line-height: 22px;
	background-color: #ffe27a;
}

.dice-chip input:focus-visible + span {
	outline: 1px dotted #000000;
}

/* The total and the bet during a game: the site's rounded boxes, their number as large as
   the lottery's counters, the buttons beside them. */
.dice-panel {
	width: 100%;
	margin-bottom: 4px;
}

.dice-box {
	width: 150px;
	padding: 0 4px;
	vertical-align: middle;
	text-align: center;
}

.dice-amount {
	font-size: 20px;
	line-height: 1.4;
}

.dice-go {
	vertical-align: middle;
}

.dice-message {
	min-height: 15px;
	font-weight: bold;
	text-align: center;
}

.dice-message.is-won {
	color: #2f7d00;
}

/* The guest's box at the end of a practice game: the site's grey dialog, over the middle of
   the table rather than of the page. dice.js places it on whole pixels of the page: half a
   pixel off, its pieces (grey-*.gif) no longer meet. */
.dice-stage .dice-dialog {
	left: 0;
	top: 0;
}

/* Inside the game's box, the box's headings rules reach the dialog's title (boxes.css: the
   padding, the size, and a theme's own corner, such as the snow's, in place of its background):
   it keeps its own, as style.css draws it (div.dialog-grey-top h3: 26 px high, 10 px). The id
   outweighs the theme's div.maskbox.light.snow h3. */
#dice .dice-dialog .dialog-grey-top h3 {
	padding: 0;
	font-size: 10px;
	background: url(../images/dialogs/grey-header.gif) repeat-x;
}

/* A guest's practice game: said under the table, in grey. */
.dice-guest {
	font-size: 11px;
	color: #7f7f7f;
}

.dice-history {
	margin: 0;
	padding-left: 16px;
}

.dice-when {
	color: #7f7f7f;
}
