body {
    background: #111;
    color: #eee;
}
.retro-shell {
    max-width: 100%;
    margin: 0 auto;
    background: #222;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}
.retro-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}
#retroCanvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges; /* fallback for some browsers */
}
#titleScreen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
	font-family: "Jersey 10", sans-serif;
	font-weight: 400;
	font-style: normal;
    overflow: hidden;
    text-transform: uppercase;
}
.ts-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ts-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}
.ts-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffe7a3 0%, #ffb84d 40%, #ff6b2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 10px rgba(255, 180, 70, 0.6),
        0 0 20px rgba(255, 100, 40, 0.4);
}
.ts-play {
    background: #111;
    color: #ffd86b;
    border: 2px solid #ffd86b;
    padding: 0.9rem 2rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow:
        0 0 8px rgba(255, 216, 107, 0.4),
        inset 0 0 8px rgba(255, 216, 107, 0.2);

    transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.ts-play:hover {
    background: #ffd86b;
    color: #111;
    box-shadow:
        0 0 12px rgba(255, 216, 107, 0.8),
        inset 0 0 12px rgba(255, 216, 107, 0.4);
    transform: translateY(-2px);
}
.ts-play:active {
    transform: translateY(1px);
    box-shadow:
        0 0 6px rgba(255, 216, 107, 0.5),
        inset 0 0 4px rgba(0, 0, 0, 0.4);
}		
.ts-copy {
    position: absolute;
    bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}
.ts-copy a {
    color: #fff;
    text-decoration: underline;
}
.touch-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    display: none;
    z-index: 20;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}
@media (pointer: coarse) and (orientation: landscape) {
    .touch-controls {
        display: flex;
    }
}
.tc-left,
.tc-right {
    display: flex;
    gap: 8px;
    pointer-events: auto;     /* enable clicks here */
}
.tc-dpad {
    display: grid;
    grid-template-columns: 40px 40px 40px;
    grid-template-rows: 40px 40px 40px;
    gap: 4px;
}
.tc-dpad-spacer {
    width: 40px;
    height: 40px;
}
.tc-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #555;
    background: radial-gradient(circle at 30% 30%, #666, #222);
    color: #fff;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 6px rgba(0,0,0,0.8);
    padding: 0;
}
.tc-btn:active {
    transform: translateY(1px);
    background: radial-gradient(circle at 70% 70%, #888, #222);
}
.tc-fire {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff7f50, #7a1a20);
    border-color: #ffb37a;
    box-shadow:
        0 0 10px rgba(0,0,0,0.9),
        0 0 12px rgba(255,127,80,0.7);
}
.tc-fire:active {
    transform: translateY(1px) scale(0.97);
}
#rotate-message {
    position: fixed;
    inset: 0;
    z-index: 10000; /* higher than #titleScreen (9999) */
    display: none;  /* jQuery .show() / .hide() will toggle this */
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-family: "Karla", sans-serif;
    text-align: center;
    padding: 1.5rem;

    display: none;
}
#rotate-message p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 4rem;
}