@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v11/MDadn8DQ_3oT6kvnUq_2r_esZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: local('Source Sans Pro'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v9/ODelI1aHBYDBqgeIAH2zlJbPFduIYtoLzwST68uhz_Y.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  src: local('Source Sans Pro Black'), local('SourceSansPro-Black'), url(https://fonts.gstatic.com/s/sourcesanspro/v9/toadOcfmlt9b38dHJxOBGIq-Fb0zf838trI74uojZQY.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}
@font-face {
  font-family: 'FontAwesome';
  src: url('fontawesome-webfont.eot?v=3.0.1');
  src: url('fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),
    url('fontawesome-webfont.woff?v=3.0.1') format('woff'),
    url('fontawesome-webfont.ttf?v=3.0.1') format('truetype');
  font-weight: normal;
  font-style: normal;
}
/* General */
html {
  font-size: 1em;
}
body {
  font: 1em 'Source Sans Pro';
  margin: 0;
  background: #000;
  background-size: cover;
  color: #fff;
}
a {
  color: #fff;
  text-decoration: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th {
  padding: 0;
  font-weight: normal;
}
td {
  padding: 0;
}

/* Header */
h1 {
  color: #fff;
  font-size: 2rem;
  margin: 0.65em 0;
}
h3 {
  margin: 0;
  text-transform: uppercase;
  font-weight: normal;
  text-align: center;
}
nav > ul {
  margin: 0;
  padding: 0;
}
.button,
nav li {
  display: block;
}
.button,
nav a {
  font: 1.25rem 'Lato';
  display: inline-block;
  width: 50%;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  border-radius: 5px;
  padding: 0.3rem 0.6rem 0.4rem;
  margin: 0.5em;
  background: #000;
}
.button {
  margin: 0;
}
[class^="icon-"],
[class*=" icon-"] {
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  margin: 0 0.4em 0 0;
  -webkit-font-smoothing: antialiased;
}
.icon-cog:before{content:'\f021'}

/* Content */
#content {
  display: table;
  margin: auto;
  background: rgba(0,0,0,0.7);
}

/* Canvases */
#sprite {
  display: none;
}
/*#bg {
  position: fixed;
  top:0;
  left:0;
  height:100%;
  width:100%;
  z-index: -1;
  opacity: 0;
  transition: opacity .5s ease-in;
}*/
#bg {
  position: fixed;
  top:0;
  left:0;
  height:100%;
  width:100%;
  z-index: -1;
}
#a {
  position: relative;
  overflow: hidden;
  float: left;
}
#b {
  border: 1px solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  float: left;
  z-index: 3;
}
#c {
  padding: 0 0.5em;
  position: relative;
  overflow: hidden;
  float: left;
}
  #bgStack {
    background: #000;
    position: absolute;
    z-index: 2;
  }
  #hold,
  #preview,
  #stack {
    position: absolute;
    z-index: 2;
  }
  #active {
    position: absolute;
    z-index: 3;
  }
  #msg {
    font: 900 4rem 'Source Sans Pro', sans-serif;
    font-size: 4rem;
    color: #fff;
    position: absolute;
    text-align: center;
    width: 100%;
    line-height: 642px;
    margin: 0;
    z-index: 4;
  }

#d {
  float: left;
}

/* Stats */
#stats {
  display: block;
  position: absolute;
}
#stats tbody {
  display: block;
}
#stats tr {
  display: block;
  width: 100%;
  padding: 0 0.5rem;
}
#stats th {
  text-transform: uppercase;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}
#stats td {
  font-size: 280%;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  display: inline-block;
  width: 100%;
}
#time {
  text-align: center;
  font-weight: 900;
  font-size: 1.125em;
  display: block;
}

/* Menus */
.menu {
  text-align: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: -200%;
  position: absolute;
  background: #000;
  background: rgba(0,0,0,0);
  top: 0;
  z-index: 50;
  opacity: 0;
  /*-webkit-transition: opacity .4s ease-in-out;
     -moz-transition: opacity .4s ease-in-out;
       -o-transition: opacity .4s ease-in-out;*/
          transition: opacity .8s ease-out,
                      background .4s ease-out .3s,
                      margin .4s ease-out;
}
.on {
  background: rgba(0,0,0,0.8);
  opacity: 1;
  margin: 0;
}

/* Controls */
#controls {
  margin: 0 auto 1em;
}
#controls th {
  font-weight: bold;
  text-align: left;
  line-height: 1.6;
}
#controls td {
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 0.2em 0 0.2em 2em;
  text-align: center;
  width: 6em;
  line-height: 1.6;
  background: #111;
  border-radius: 5px;
}
#controls td:hover {
  background: #191919;
}

#controls td:active {
  background: #1a1a1a;
}


/* Settings */
.left,
.right {
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -webkit-transition:all .1s ease-out;
  transition:all .1s ease-out
}
.left:hover,
.right:hover {
  color: #4da6ee;
}
.left:before,
.right:before {
  text-decoration: inherit;
  display: inline-block;
}
.left:before  { content: "\f022"; }
.right:before { content: "\f023"; }

#settings {
  margin: 0 0 1em;
}
#settings b {
  text-align: left;
  display: inline-block;
  width: 7em;
}
#settings span {
  text-align: center;
  font-weight: bold;
  display: inline-block;
  width: 5em;
  margin: 0.3em 0;
}

/* Special Menus */
#go {
  background: none;
  transition: opacity .8s ease-out .8s;
}
#go ul {
  width: 100%;
  position: absolute;
  bottom: 2em;
}

#pause {
  background: none;
  transition: opacity .8s ease-out;
}
#pause ul {
  width: 100%;
  position: absolute;
  bottom: 2em;
}
/* --- Privacy banner overlay (fits with your menu z-index=50) --- */
.privacy-banner{
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 120; /* acima do .menu (50) */
  display: flex;
  justify-content: center;
  pointer-events: none; /* não bloquear o jogo */
}

.privacy-card{
  pointer-events: auto;
  position: relative;
  max-width: 760px;
  width: calc(100vw - 32px);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  animation: privacyIn 650ms ease-out both;
}

@keyframes privacyIn{
  from{ transform: translateY(-10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.privacy-glow{
  position: absolute;
  inset: -60px -80px auto -80px;
  height: 150px;
  background:
    radial-gradient(circle at 25% 40%, rgba(77,166,238,0.35), transparent 60%),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.12), transparent 55%);
  filter: blur(10px);
  animation: privacyGlow 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes privacyGlow{
  0%,100% { transform: translateX(-10px) translateY(0); opacity: 0.85; }
  50%     { transform: translateX(14px) translateY(8px); opacity: 1; }
}

.privacy-card{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.privacy-text{
  flex: 1;
  font: 1rem 'Source Sans Pro';
  color: rgba(255,255,255,0.95);
  line-height: 1.25;
}

.privacy-actions{
  position: static; /* remove absolute */
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.privacy-actions button{
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border-radius: 8px;
  padding: 4px 10px 5px;
  cursor: pointer;
  font: 0.9rem 'Lato';
}
.privacy-actions button:hover{ background: rgba(255,255,255,0.14); }
.privacy-actions .dismiss{
  width: 34px;
  height: 30px;
  padding: 0;
  font-size: 18px;
  line-height: 28px;
}

/* idioma */
.privacy-banner[data-lang="pt"] .en{ display:none; }
.privacy-banner[data-lang="en"] .pt{ display:none; }

/* quando o menu está aberto, escondemos o banner */
.privacy-banner.is-hidden{
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

/* mobile: não ocupar muito */
@media (max-width: 520px){
  .privacy-card{ padding: 10px 12px; }
  .privacy-text{ padding-right: 0; font-size: 0.95rem; }
  .privacy-text .muted{ display: block; margin: 4px 0 0; }
  .privacy-actions{ position: static; margin-top: 10px; justify-content: flex-end; }
}
.warning{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.warning-triangle{
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid #ffd54a;
  position: relative;
  filter: drop-shadow(0 0 6px rgba(255,213,74,0.6));
  animation: pulseWarn 2s ease-in-out infinite;
}

.warning-triangle::after{
  content: '!';
  position: absolute;
  left: -3px;
  top: 2px;
  font-size: 10px;
  font-weight: 900;
  color: #000;
}