body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f2f0ea;
    font-family: "Sono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "MONO" 1;
    touch-action: none; /* Prevent the browser's default touch actions */
}

.loggedIn {
    display: none;
}

body.gr-user-logged-in .loggedIn {
    display: inline;
}

body.gr-user-logged-in .loggedOut {
    display: none;
}

body div {
    box-sizing:border-box;
}

.logoHolder {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0px;
}

.logoHolder .square {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #fba769ba;
}

.logoHolder .square .tile,
.closeDirect .tile {
    font-size: 30px;
    text-align: center;
    margin-left: -4px;
}

.closeDirect .tile {
	position: fixed;
	transform: none !important;
    bottom: 26px;
    right: 30px;
    z-index: 99999999999;
    box-shadow: -6px 6px #00000017 !important;
    min-width: 41px !important;
    min-height: 43px !important;
    font-size: 29px !important;
    margin-top: 0px !important;
	transition: all .9s ease .2s !important;
    opacity: 0;
	pointer-events: none;
}

.tile {
	position: relative;
	transition: all 0.4s ease; /* Default transition for desktop drag and drop */
	user-drag: none;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid {
    width: 28vw;
    height: 28vw;
    min-width: 400px;
    min-height: 400px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(9, 1fr);
    border: 1px solid #df7878;
    background: #fbfbfb;
    outline: solid 1px #f2ae2c;
    touch-action: none; /* Prevent default actions on grid */
}

.lineIndWrap {
    width: calc(28vw + 5px);
    min-width: 405px;
}

.grid-wrapper {
    display: flex;
    align-items: stretch;
}

.grid .square {
    border: 0.5px solid #c8c7c7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    touch-action: none; /* Prevent touch actions from interfering with tap events */
}

.pointsOverlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #546892;
    font-size: 10px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
    display: none;
    z-index: 10;
	border: 1px dotted #4e9392;
    box-shadow: -2px -1px #5468929e;
}

.line-indicator {
    height: 7px;
    background-color: #77bcf6f0;
    margin-top: 17px;
    align-self: baseline;
	float:right;
}

.looseLetter .tile {
    background: #000;
}

.shelf {
    padding-top: 20px !important;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    width: calc(28vw + 6px);
    min-width: 406px;
    overflow-y: hidden;
    overflow-x: visible;
    padding-left: 10px;
    padding-right: 8px;
    padding-top: 3px;
    touch-action: none; /* Prevent default actions on shelf */
}

.shelf:after {
    content: '';
    position: absolute;
    width: calc(28vw + 6px);
    min-width: 406px;
    background: #77bcf6f0;
    height: 0px;
    margin-top: 62px;
}

.grid .tile {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0px !important;
    margin: 0px !important;
    align-items: center;
    text-align: center;
}

.grid .tile span {
    text-align: center;
    width: 100%;
    background-color: #fba769ba;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shelf .tile,
.closeDirect .tile {
	width: 2.9vw;
	height: 2.9vw;
	min-width: 40px;
	min-height: 40px;
	max-width: 60px;
    max-height: 60px;
	background-color: #ffa174;
	display: flex;
	opacity: 0;
	transform: translateY(50px) scale(0.9);
	justify-content: center;
	align-items: center;
	font-size: 2vw;
	cursor: pointer;
	user-select: none;
	color: #fff;
	font-weight: 450;
	transition: all .5s ease;
	box-shadow: -6px -2px #00000017;
}

.letSpan {
	width: 100%;
    text-align: center;
    height: 100%;
    line-height: 42px;
}

.shelf .letSpan {
    display: flex;
    justify-content: center;
    align-items: center;
}

.showTile {
    opacity: 1 !important;
    transform: translateY(0px) scale(1) !important;
}

/* Animation for active tile */
.tile.wiggle {
    transform: translateY(-8px) rotate(0deg);
	padding:1px;
	margin-top:-10px;
	background-color:#74DAFF; 
    animation: wiggle 1.8s infinite;
}

.grid .tile.wiggle {
    transform: translateY(-1px) rotate(0deg);
	padding:1px;
	margin-top:-10px;
	background-color:#74DAFF !important; 
    animation: wiggleUp 1.8s infinite;
}
.grid .tile span {
    transition:background .3s ease;
}

.grid .tile.wiggle span {
    background-color:#74DAFF !important; 
}


@keyframes wiggle {
    0% { transform: translateY(-8px)  rotate(0deg); }
	25% { transform: translateY(-8px)  rotate(-5deg); }
	50% { transform: translateY(-8px)  rotate(0deg); }
    75% { transform: translateY(-8px)  rotate(5deg); }
	100% { transform: translateY(-8px)  rotate(0deg); }
}
@keyframes wiggleUp {
    0% { transform: translateY(-1px)  rotate(0deg); }
	25% { transform: translateY(-1px)  rotate(-5deg); }
	50% { transform: translateY(-1px)  rotate(0deg); }
    75% { transform: translateY(-1px)  rotate(5deg); }
	100% { transform: translateY(-1px)  rotate(0deg); }
}

/* Pulsing effect for valid drop targets */
.grid .square.pulse {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0px rgba(255, 0, 0, 0); }
    50% { box-shadow: 0 0 3px rgba(84,173,255,0.76); }
    100% { box-shadow: 0 0 0px rgba(255, 0, 0, 0); }
}

.scoreboard {
    margin-top: 20px;
    font-size: 20px;
}

#wordPopup {
    position: absolute;
    top: 20px;
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    display: none; /* Initially hidden */
}

.hasLetter {
    color: #fff;
    border-left: 1px solid #b3887a !important;
    border-top: 1px solid #b3887a !important;
    box-shadow: -6px -2px #00000017;
}

.dualWordTile .tile span {
	background-color: #eac889;
    color: #546892;
    font-weight: 600;
}

.tempHide {
	opacity:0 !important;
}

.sendButton {
	display: inline-block;
	float: right;
    text-align: right;
    width: 46px;
	margin: 8px 0 0 0;
}

.sendButton p {
	width: 38px;
    height: 38px;
    background: #ffa17433;
    color: #fff;
    font-size: 30px;
    line-height: 38px;
    text-align: center;
    float: right;
    margin: 0;
}

.sendAllowed {
	background: #FFA174 !important;
}

.pointsWrap {
	position: absolute;
    margin-top: -35px;
    margin-left: 80px;
	display:none;
}

.showPointChange {
	display:block;
}

.scoreTag {
	display: inline-block;
    padding: 3px 5px 6px 3px;
    border-radius: 1px;
    color: #2d322f;
    background-color: #A0E6C8;
    position: relative;
    border-left: 1px solid #7ab3afcc !important;
    border-top: 1.5px solid #7ab3adc7 !important;
    box-shadow: -6px -2px #00000017;
    text-align: center;
	transform:scale(0.9);
	transform-origin:bottom center;
}

.scoreTag p {
	margin:6px 10px;
	font-size: 18px;
    letter-spacing: 1px;
}

.pointerWrap {
	position: absolute;
    width: 100%;
}

.middlePointer {
	transform: translate(-2px, -0.5px);
    z-index: -1;
}

.underPointer {
	transform: translate(-6px, -1px);
    z-index: -3;
}

.pointer {
	margin: 0 auto;
    border-bottom: 12px solid transparent;
    border-left: 12px solid transparent;
    border-right: 12px solid #A0E6C8;
    width: 0px;
    height: 0px;
    transform: rotate(135deg);
    transform-origin: top;
    margin-left: 50%;
}

.underPointer .pointer {
	border-right: 12px solid #dcdad6;
}

.middlePointer .pointer {
	border-right: 12px solid #81bdb4;
}

.minusScore .scoreTag {
	background:#e77674;
	border-left: 1.5px solid #8e5453 !important;
    border-top: 1px solid #8e5453 !important;
	box-shadow: -6px -2px #641f0929;	
	color: #fff;
}

.minusScore .pointer {
	border-right: 12px solid #e77674;
}

.minusScore .underPointer .pointer {
	border-right: 12px solid #dccfc7;
}

.minusScore .middlePointer .pointer {
	border-right: 12px solid #8e5454;
}

.chance-indicators {
    display: inline-block;
    margin-top: 10px;
	width:100px;
}

.dirChance {
	display: inline-flex;
    gap: 4px;
	margin-top: 12px;
}

.chance-indicator,
.dirChances {
	display: inline-block;
    width: 13px;
    height: 13px;
    margin: 0 0px;
    background-color: #77bcf6b5; /* Initial color */
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.dirChances {
	width: 10px;
    height: 10px;
}

.chance-indicator.used,
.dirChances.used {
    background-color: #e77674; /* Color for used attempts */
    transform: scale(1.2); /* Slightly enlarge the used indicator */
}

.copyright {
	position: absolute;
	bottom: -4px;
	font-size: 11px;
	font-family: "Sono", monospace;
	font-weight: 300;
    color: #fe5c0f;
	text-align: right;
	width: 100%;
	right: 5px;
	line-height:1.4;
}

.copyright .copySpan {
	display:inline-block;
}

.copyright a {
	background: #d8d6ce;
    color: #e77674;
    font-weight: 600;
    padding-left: 2px;
    text-decoration: none;
    padding-right: 2px;
    transition: all .3s ease;
    letter-spacing: .6px;
}

.copyright a:hover {
	background: #fff;
}

.directionsWrap {
	position: fixed;
    z-index: 999999999;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #00000070;
    padding: 24px 18px 16px;
	opacity:0;
	pointer-events: none;
	transition: opacity .8s ease;
}

.openDirect {
	opacity:1;
	pointer-events: all;
}

.closeBox {
	position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999999999;
}

.closeBox p {
	bottom: 22px;
    right: 92px;
    position: fixed;
    letter-spacing: .7px;
	opacity:0;
	pointer-events:none;
	transition: all .8s ease !important;
	cursor:pointer;
}

.startGame,
.contGame {
	transition: all .8s ease !important;
}

p.startGameShow,
p.showCont {
	opacity:1;
	pointer-events: all;
}

.tile.freshDirTile {
	opacity:1;
	pointer-events:all;
}

.tile.closeBoxSlide {
	bottom: 61px;
    opacity: 0.6;
    right: calc(100% - 60px);
}

.directions {
	width: 100%;
    height: 100%;
    background: #f2f0ea;
    border: 2px dashed #f7986a;
    outline: 3px solid #f2f0ea;
	transition: all .8s ease;
	overflow: hidden;
	box-sizing: border-box;
}

#dirBlock {
    display:flex;
    transition: transform .24s ease;
    width: 200%;
}

.dirBlockSlide {
    transform: translateX(-50%) !important;
}

#toAboutBtn,
#toDirBtn {
    width: 93px;
    font-size: 16px;
    text-align: center;
    background: #f8c8ae;
    box-shadow: -2px -2px 0 #e0dfd9;
    line-height: 0;
    color: #fff;
    position: absolute;
    top: 16px;
    right: 15px;
    cursor:pointer;
}
#toDirBtn {
    width:140px;
    right:unset;
    left: 15px;
}

#howToPlayBk, #aboutBk {
    position:relative;
    width: 50%;
    padding: 0 15px;
}

#aboutBk h1 {
    text-align:right;
    margin-right:20px;
}

#dirBlock .title {
	font-size: 17px;
    margin: 11px 0 26px;
}

#dirBlock .title span {
	margin-right: 1.5px;
}

#dirBlock .title .tW, 
#dirBlock .title .tOo {
	margin-right: 10px;
}

#dirBlock .title .tO,
#dirBlock .title .tT,
#dirBlock .title .tP,
#dirBlock .title .tA {
	display:inline-block;
	transform:translateY(1.5px);
}

#dirBlock .title .tH,
.dirTile,
.underTile:after {
	width: 24px;
    height: 25px;
    background-color: #ffa174d9;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 19px;
    cursor: pointer;
    user-select: none;
    color: #fff;
    font-weight: 450;
    transition: transform 0.6s ease, opacity 0s;
    box-shadow: -4px -3px #00000017;
    top: 2px;
    position: relative;
    margin-right: 2px;
}

.specCol,
.upCol {
	position: relative;
	height: 43px;
	overflow:hidden;
}


.specCol .dirTile  {
	width: 22px;
    height: 23px;
    font-size: 17px;
	top:14px;
    margin: 3px 2px 0;
}

.upCol:after,
.specCol:after {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, #f2f0ea, rgba(242, 240, 234, 0));
    pointer-events: none;
}

.upCol:after {
	height: 30px;
}

.dirScore {
	font-size: 8px !important;
    display: inline-block;
    letter-spacing: 0px !important;
    transform: translateY(-3px) scale(1.2);
    transform-origin: left;
    margin-left:-2px;
}

.upCol .line-indicator {
	margin-top:7px !important;
	height:4px;
	width:94px;
	margin-right: calc(100% - 98px);
	animation: dirLine 6s infinite linear;
}

@keyframes dirLine {
	0% {
		width: 94px;
	}
	
	100% {
		width: 0;
	}
}

.wrongTile {
	background: #b77a4c;
}

.underTile {
	background-color: #eac889;
    color: #546892;
    font-weight: 600;
}

.underTile:after {
	content:'';
	position: absolute;
	top: -29px;
	width: 22px;
    height: 23px;
    font-size: 17px;
}

.adSpaceLarge {
	background:#000;
	width:300px;
	height:250px;
	margin: 8px auto 0px;
}

.adSpaceShort {
	display: none;
	background:#000;
	width:320px;
	height:100px;
	margin: 8px auto 0px;
}

.adCaption {
    position: relative;
    text-align: right;
    width: 300px;
    margin: -7px auto;
    color: #9999999c;
    font-size: 11px;
}

.closedSpan,
.closeIT {
	max-width:0;
	overflow:hidden;
	opacity:0;
}

.closedSpan {
	font-size: 21px;
    border: 1px solid #ffcbb2;
    border-radius: 50%;
    width: 27px;
    height: 29px;
    line-height: 29px;
}

.openIT {
	max-width:100px !important;
	opacity:1 !important;
}

#adImage {
	width:100%;
}

.pRow {
	display: flex;
	gap: 5px;
	align-items: center;
	margin-bottom: 6px;
	opacity: .78;
	border-bottom: .5px solid #b7b7b7;
	padding-bottom: 5px;
	height: 32px;
}

.pRow:last-child {
	border-bottom:0px;
}

.pRow .key {
	padding-top: 1%;
}

.pRow .col1, 
.pRow .col2 {
	display: inline-block;
    width: calc(100% - 106px);
}

.pRow .col1 {
	font-size: 11px;
}

.pRow .col2 {
	width: 105px;
	gap: 3px;
}

.pRow .col2 .guess-limit {
	width: 100%;
	display: flex;
	gap: 0px;
	margin-top: 9px;
	margin-left: -3px;
}

.pRow .col2 {
	min-width: 24vw;
	gap:7px;
}

.pRow .col2 p {
	font-size: 23px;
	margin-right: 12.5px;
}

.pRow .col2 .guess-limit .guess-dot {
	width:12px;
	height:12px;
}

.sym {
	width: 22px;
	margin-right: 6px;
	margin-left: 6px;
}

/*** End game ***/
#endGame {
    opacity:0;
    pointer-events:none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00000047;
    z-index: 99999999999;
    display: flex;   
    transition:all .4s ease;
}

#endGame.gameEnded {
    opacity:1;
    pointer-events:all;
}

#endGameModal {
    width: 500px;
    max-width: calc(100% - 40px);
    background: #fff;
    padding: 30px;
    box-sizing: border-box;
    align-self: center;
    margin: 0 auto;
    border: 2px dashed #8c684e;
    outline: 3px solid #fff;
    text-align: center;
}

#endGameModal h3 {
    color: #2f2d2c;
    font-weight: 300;
    font-size: 21px;
    margin: 3px 0 12px 0;
    background: #fba769c7;
}

#endGameModal h4 {
    font-weight: 500;
}

.yourScoreP {
    background: #e5e5e5;
    width: 230px;
    margin: 28px auto 0;
    padding: 6px 0px;
}

#scoreSpan {
    font-size: 73px;
    line-height: 0px;
    margin: 34px 0 50px;
    color: #fba769;
    letter-spacing: -7px;
}

.endGmScores {
    font-size: 14px;
    margin-top: -5px;
}

.userRankGraph {
    width: 84%;
    height: 102px;
    background: #d7d6d6;
    margin: 16px auto 20px;
}

.endGamePlayAgain {
    display: inline-block;
    background: #fba769;
    padding: 6px 11px;
    color: #fff;
    cursor:pointer;
}

#closeEndWrap {
    display: inline-block;
    margin-left: 50px;
    font-size: 20px;
    background: #eaeaea;
    padding: 5px 10px;
    cursor:pointer;
}

.endGmMakeAcct {
    font-size: 12px;
    margin: 20px 0 1px;
    color: #59544f;
    cursor:pointer;
}

.lowScore,
.avgScore,
.highScore,
.superScore {
    display:none;
}

.showScore {
    display:block !important;
}

@media all and (min-width:540px) {
    .directions {
        max-width: 500px;
        margin-left: calc(100% - 500px);  
    }
    
    #dirBlock {
        display: flex;
        margin-bottom: 28px;
    }
    
    #dirBlock .title {
      font-size: 17px;
      margin: 21px 0 21px;
    }
    
    .pRow {
        height: 37px;
        gap: 50px;
    }
    
    .pRow .col1 {
      font-size: 12px;
    }
    
    .pRow .col1, 
    .pRow .col2 {
        display: flex;
        flex: 1 1 100%;
    }
    
    .pRow .col2 {
        min-width:unset;
        width:unset;
        display: block;
        flex: 1 1 50%;
    }
}

@media all and (max-width: 800px) {
    body {
		max-height: 100vh;
        overflow: hidden;
    }

    .game-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
    }

    .grid,
    .lineIndWrap {
        width: 300px;
        height: 300px;
        max-width: unset;
        max-height: unset;
        min-width: 300px;
        min-height: 300px;
        margin-top: 110px;
    }

    .lineIndWrap {
        width: 305px;
        margin-top: -30px;
        height: unset;
        min-height: unset;
        max-height: unset;
    }

	.addTileRow {
		width: 306px;
	}
	
	.tile {
	    user-drag: none;
	}
	
    .shelf .tile,
    .grid .square {
        font-size: 19px;
    }

    .shelf {
        gap: 9px;
        width: 306px;
		padding-bottom:34px;
        min-width: unset;
    }

    .shelf:after {
        width: 306px;
        min-width: unset;
        margin-top: 41px;
    }

    .shelf .tile {
        width: 34px;
        height: 33px;
        max-width: unset;
        max-height: unset;
        min-width: unset;
        min-height: unset;
    }
    
    .letSpan {
	    line-height:180%;
	    user-drag: none;
	}
	
	.grid .tile .letSpan {
	    line-height:170%;
		max-height: 32px;
        box-sizing: border-box;
	}

    .tile.dragging {
        position: absolute;
        z-index: 1000;
        pointer-events: none;
    }

    .line-indicator {
        margin-top: 2px;
    }

    .logoHolder .square {
        width: 33px;
        height: 33px;
    }

    .logoHolder .square .tile {
        font-size: 25px;
        margin-left: -3px;
        margin-top: 1px;
    }
	
	.scoreboard {
		position: absolute;
  		bottom: 40px;
	}
	
}

@media all and (max-width:500px) {
    .grid {
        margin-top:90px;
    }
}

@media all and (max-width:450px) {
    #endGameModal {
        padding: 20px;
    }
    
    #closeEndWrap {
        margin-left: 20px;
        font-size: 18px;
    }
}


@media all and (max-width:360px) {
    .grid {
        margin-top: 50px;
        transform:scale(0.93);
        transform-origin:top;
    }
	
	.directions {
		border: 1px dashed #f7986a;
	}
	
	.directionsWrap {
        padding: 10px 10px 0px;
    }
	
	#dirBlock .title {
        margin: 5px 0 1px;
	}
	
	.pRow {
        height: 25px;
	}
	
	.pRow .col1 {
        font-size: 10px;
        line-height: 1.5;
	}
	
	.adSpaceLarge {
        margin: 1px auto 0px;
	}
	
	.closeBox p {
        bottom: 8px;
        right: 69px;
        font-size: 12.5px;
	}
	
	.closeDirect .tile {
        bottom: 12px;
		transform: scale(0.9);
	}
}

@media all and (max-width: 320px) {
    .logoHolder .square {
        width: 10.4vw;
        height: 10.4vw;
    }

    .logoHolder .square .tile {
        font-size: 8vw;
    }

    .shelf {
        gap: 1.7vw;
    }
	
	.grid {
		width:98vw;
        height:98vw;
		max-height: unset;
		min-height: unset;
		max-width: unset;
		min-width: unset;
			
	}

    .shelf .tile {
        max-width: 10.5vw;
        max-height: 10.5vw;
        box-shadow: -3px -2px #00000017;
    }
	
}

@media all and (max-height:630px) {
	.directionsWrap {
		padding: 16px 18px 13px;
	}
	
	#dirBlock .title {
    	margin: 10px 0 1px;
    	transform: scale(0.8);
    	transform-origin: top left;
	}
	
	.pRow {
    	gap: 2px;	
		height:29px;
	}
	
	.pRow .col1 {
		font-size: 10px;
		width: calc(100% - 99px);
	}
	
	.pRow {
		opacity: 1;
	}
	
	#dirBlock .title .tH, .dirTile, .underTile:after {
		width: 22px;
		height: 23px;
		font-size: 18px;
	}
	
	.pRow .col2 {
		width:100px;
		transform: scale(0.9);
    	transform-origin: center right;
	}
	
	.adSpaceLarge {
		margin: -4px auto 0px;
	}
	
	.adCaption {
    	margin: -10px auto;
    	font-size: 9.5px;
	}
	
	
	.closeDirect .tile {
		width:33px;
		height:33px;
		bottom: 20px;
		right: 27px;
		box-shadow: -5px 5px #00000017 !important;
		min-width: 33px !important;
		min-height: 33px !important;
	}
	
	.closeBox p {
		bottom: 11px;
		right: 80px;
		font-size:13px;
	}
	
	.specCol {
    	display: flex !important;
		gap: 7px !important;
	}
	
	.tile.closeBoxSlide {
        bottom: 30px;
        right: calc(100% - 50px);
	}
	
	.grid {
        margin-top: 73px;
    }
	
	.scoreboard {
		font-size:19px;
        bottom: 38px;
	}
	
	.upCol .line-indicator {
		margin-top: 6px !important;
		width: 90px;
		margin-right: calc(100% - 90px);
	}
	
	.upTile {
		margin-top: 4px;
	}
	
	.logoHolder {
		transform: scale(0.8);
    	transform-origin: top right;
	}
}

@media (pointer: coarse) {
    .tile, .tile * {
        -webkit-user-drag: none;
        user-drag: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        touch-action: none;
    }
    .tempHide {
        visibility: hidden !important; 
    }
    .dragGhost {
        position: fixed;
        z-index: 10000;
        pointer-events: none;
        will-change: transform;
        opacity: 0.95;
    }
}

/* Griddle account / stats / settings shell */
.gr-shell-nav{position:fixed;left:74px;bottom:60px;z-index:80;display:flex;gap:14px}.gr-shell-nav button,.gr-panel button,.gr-panel select,.gr-panel input{font:inherit}
.gr-shell-nav button{
    border: 0;
    padding:0;
    cursor: pointer;
    background: #f9c0a3;
    height: 44px;
    width: 44px;
    box-shadow: -4px 4px #e5e3de;
}

.gr-shell-nav .imgBtn {
    padding:0;
}

.gr-shell-nav button i{
    font-size: 30px;
    color: #fff;
    opacity: .8;
}

.gr-shell-nav button img{
    width: calc(100% - 6px);
    padding: 3px 4px;
    opacity: .86;
}
.gr-shell-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;z-index: 99999999999;transition:opacity .25s}
.gr-shell-backdrop.open{opacity:1;pointer-events:auto}

#stgsBtn,
#acctBtn {
    transform:translateX(-200px);
    transition: transform .6s ease;
    transition-delay:.8s;
}

#acctBtn {
    transition-delay:1.2s;
}
#stgsBtn.comeIn,
#acctBtn.comeIn {
    transform:translateX(0);
}

.gr-panel{
    position: fixed;
    z-index: 999999999999999;
    color: var(--gr-ink,#191919);
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    margin-left: calc(100% - 500px);
    width: 100%;
    background: #f2f0ea;
    border: 2px dashed #f7986a;
    outline: 3px solid #f2f0ea;
    transition: all .8s ease;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 500px;
    top: 24px;
    right: 18px;
    bottom: 16px;
    opacity: 0;
    pointer-events: none;
}
.gr-panel[data-open]{opacity: 1; pointer-events: all;}
.gr-panel-close{position:absolute;right:20px;top:14px;border:0;background:none;font-size:40px;cursor:pointer}.gr-panel h2{font-family:Sono,monospace;letter-spacing:.08em}.gr-panel h3{margin-top:34px}.gr-panel form{display:grid;gap:10px}.gr-panel input,.gr-panel select{box-sizing:border-box;width:100%;padding:12px;border:1px solid currentColor;background:transparent}.gr-panel form button,.gr-panel>section>button{padding:12px;border:1px solid currentColor;background:transparent;cursor:pointer}.gr-panel label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;border-bottom:1px solid rgba(0,0,0,.2);padding:16px 0}.gr-panel label select{width:auto}.gr-panel label input[type=checkbox]{width:22px;height:22px}.gr-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.gr-stat-grid div{border:1px solid currentColor;min-height:82px;padding:12px;display:flex;flex-direction:column;justify-content:space-between}.gr-stat-grid strong{font-size:24px}.gr-stat-grid span{font-size:11px;text-transform:uppercase}.gr-leader-head,.gr-leader-row{display:grid;grid-template-columns:35px 1fr 70px 55px;gap:8px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.2)}.gr-leader-head{font-size:11px;text-transform:uppercase}.gr-empty{opacity:.65}#grAccountMessage[data-type=error]{color:#a32020}#grAccountMessage[data-type=success]{color:#176b3a}html[data-griddle-theme=dark]{--gr-panel:#181818;--gr-ink:#f5f1e8;background:#181818;color:#f5f1e8}html[data-griddle-tile-style=clean] .tile{box-shadow:none!important;border-radius:2px!important}.gr-reduced-motion *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
@media(max-width:700px){
    .gr-shell-nav{
        top: auto;
        bottom: 60px;
        right: 10px;
        left: 69px;
        gap: 9px;
    }
    .gr-shell-nav button{padding:7px;font-size:11px}.gr-panel{padding-left:20px;padding-right:20px}.gr-stat-grid{grid-template-columns:repeat(2,1fr)}
    
}

#grPanelClose {
    font-size: 40px;
    border: 1px solid #a2a2a2;
    line-height: 31px;
    z-index: 9999;
}

.gr-panel {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.gr-panel-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.gr-panel-track {
    display: flex;
    width: 200%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.45s ease;
}

.gr-panel-track.show-account {
    transform: translateX(-50%);
}

.gr-panel-page {
    width: 50%;
    min-width: 50%;
    height: 100%;
    overflow-y: auto;
    padding: 58px 30px 30px;
}

.gr-main-section {
    min-height: 100%;
}

.gr-account-page {
    position: relative;
}

.gr-panel-back {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 0 24px;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.gr-account-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 28px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.gr-account-mode-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.gr-account-mode-switch button {
    flex: 1;
    padding: 10px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.gr-account-mode-switch button.active {
    background: #f9c0a3;
    color: #fff;
}

.gr-auth-holder {
    display: none;
}

.gr-auth-holder.active {
    display: block;
}

.gr-signed-in-copy {
    margin-top: 30px;
}

.gr-panel-ad {
    flex: 0 0 auto;
    position: relative;
    z-index: 4;
    padding: 8px 0 10px;
    background: #f2f0ea;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    text-align: center;
}

.gr-ad-large {
    display: block;
    width: 320px;
    height: 100px;
    margin: 0 auto;
    background: #000;
}

.gr-ad-small {
    display: none;
    width: 300px;
    height: 50px;
    margin: 0 auto;
    background: #000;
}

.gr-panel-ad-caption {
    width: 320px;
    margin: 2px auto 0;
    color: rgba(100, 100, 100, 0.65);
    font-size: 9px;
    text-align: right;
}

html[data-griddle-theme="dark"] .gr-panel-ad {
    background: #181818;
}

@media (max-height: 760px) {
    .gr-ad-large {
        display: none;
    }

    .gr-ad-small {
        display: block;
    }

    .gr-panel-ad-caption {
        width: 300px;
    }
}

@media (max-width: 540px) {
    .gr-panel {
        top: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    .gr-panel-page {
        padding: 54px 18px 24px;
    }
}
/* Linked gameplay guide / Fabric Games discovery within the About overlay. */
#aboutBk .gr-discovery-links{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;line-height:1.6;margin:18px 0}
#aboutBk .gr-discovery-links a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* Unified Fabric Games ad placements. Hidden sizes never mount, including on mobile. */
.gr-panel-ad [data-game-ad] { background: transparent; max-width: 100%; overflow: hidden; }
.gr-panel-ad .gameAd--unfilled, .adSpaceLarge.gameAd--unfilled { visibility: hidden; }
@media (max-width: 540px), (max-height: 760px) {
  .gr-ad-large { display: none; }
  .gr-ad-small { display: block; }
  .gr-panel-ad-caption { width: min(300px, 100%); }
}
@media (max-width: 320px) {
  .gr-ad-small { max-width: 100%; overflow: hidden; }
  .gr-panel-ad { padding-left: 5px; padding-right: 5px; }
}
#endGameModal .gr-share-result {
  border: 1px solid currentColor; border-radius: 6px; background: transparent;
  color: inherit; padding: 8px 12px; cursor: pointer; font: inherit;
}
#grShareFeedback { min-height: 1.2em; font-size: 12px; }

/* October 2026 — result art, score challenges and cross-game discovery. */
#endGameModal { max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; }
.gr-result-growth {
  border-top: 1px dashed #c6a884; padding: 12px 0 0; margin: 10px 0 0;
  color: #453529; font-family: 'Work Sans', sans-serif;
}
#endGameModal .gr-result-growth h3 { font-size: 18px; font-weight: 750; line-height: 1.2; background: none; margin: 0 0 5px; }
.gr-result-growth > p { font-size: 12px; margin: 6px auto 10px; line-height: 1.4; }
#grSharePreview { width: min(172px, 100%); height: auto; aspect-ratio: 1; display: block; margin: 0 auto 12px; border-radius: 8px; box-shadow: 0 2px 13px #38291d24; }
.gr-result-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
#endGameModal .gr-result-actions button {
  padding: 9px 10px; border: 1px solid #9d806c; border-radius: 7px;
  background: #fff8ed; color: #563c30; cursor: pointer;
  font: 700 12px/1.3 'Work Sans', sans-serif; white-space: normal;
}
#endGameModal .gr-result-actions button:first-child { background: #d86f3f; border-color: #d86f3f; color: #fff; }
#endGameModal .gr-result-actions button:focus-visible,
.gr-challenge-invite button:focus-visible { outline: 3px solid #438b77; outline-offset: 2px; }
#grShareFeedback { min-height: 1em; overflow-wrap: anywhere; color: #4c735c; }
#endGameModal .gr-result-switch { margin: 8px auto 0; }
.gr-result-switch a { color: #a14e24; font-weight: 800; text-underline-offset: 3px; }
.gr-challenge-invite {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(470px, calc(100vw - 24px)); z-index: 8500;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-sizing: border-box; background: #fff0d4; color: #503d2b;
  border: 2px solid #ca774b; border-radius: 12px; padding: 12px 15px;
  box-shadow: 0 7px 30px #342b1e30; font: 650 13px/1.4 'Work Sans', sans-serif;
}
.gr-challenge-invite button { background: #ce7044; border: 0; color: white; border-radius: 6px; padding: 7px 10px; cursor: pointer; font: inherit; }
@media (max-width: 540px), (max-height: 720px) {
  #endGameModal { max-height: 90dvh; padding: 14px; }
  #grSharePreview { width: min(116px, 40%); }
  #endGameModal .gr-result-actions button { flex: 1 1 110px; }
  .gr-challenge-invite { top: 6px; }
}

/* Keep replay and sharing accessible before scrolling the result art. */
#endGameModal .btnHolder { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: 8px 0 3px; }
#endGameModal #closeEndWrap { margin: 0; font-size: 15px; }
#endGameModal .btnHolder .endGamePlayAgain { margin: 0; }
#endGameModal #grShareResult { background: #d86f3f; color: white; border: 1px solid #d86f3f; border-radius: 7px; font: 700 13px 'Work Sans', sans-serif; padding: 10px; cursor: pointer; }
#endGameModal .gr-result-actions button:first-child { background: #fff8ed; color: #563c30; border-color: #9d806c; }
