/* ===========================================================
   1997 TAMAGOTCHI GAME
   The screen and buttons sit over the toy picture as
   percentages, so everything stays lined up at any size.
   =========================================================== */

.tama-wrap{
  position:relative;
  width:100%;
  max-width:420px;
  margin:0 auto;
}

.tama-shell{
  display:block;
  width:100%;
  height:auto;
}

.tama-screen{
  position:absolute;
  left:28.536%;
  top:34.914%;
  width:42.927%;
  height:35.07%;
  background:#C7CDB3;
  overflow:hidden;
}

.tama-screen canvas{
  display:block;
  width:100%;
  height:100%;
  image-rendering:pixelated;
}

/* the three pressable buttons */

.tama-btn{
  position:absolute;
  width:6.7%;
  aspect-ratio:1 / 1;
  padding:0;
  border:0;
  border-radius:50%;
  cursor:pointer;
  background:#E0357B;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.55),
    inset 0 -3px 4px rgba(0,0,0,0.35),
    0 3px 4px rgba(0,0,0,0.45);
  transform:translate(-50%,-50%);
  transition:transform 0.06s, box-shadow 0.06s;
}

.tama-btn-a{ left:35.12%; top:80.40%; }
.tama-btn-b{ left:49.63%; top:82.89%; }
.tama-btn-c{ left:63.41%; top:80.29%; }

.tama-btn:hover{
  background:#EE4189;
}

.tama-btn:active,
.tama-btn.is-down{
  transform:translate(-50%,-50%) scale(0.94);
  box-shadow:
    inset 0 3px 5px rgba(0,0,0,0.45),
    0 1px 2px rgba(0,0,0,0.4);
}

.tama-btn:focus-visible{
  outline:3px solid #FFE81C;
  outline-offset:3px;
}

/* ---------- how to play ---------- */

.tama-help-panel{
  margin-top:20px;
}

.tama-help-panel .panel-body{
  min-height:0;
  padding-top:20px;
  padding-bottom:22px;
}

.tama-help-head{
  margin:0 0 18px;
  font-size:16px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  text-align:center;
  color:var(--yellow);
}

.tama-keys{
  display:flex;
  justify-content:center;
  gap:26px;
  margin:0;
  padding:0;
  list-style:none;
}

.tama-keys li{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--paper);
}

.tama-key{
  display:block;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#E0357B;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.55),
    inset 0 -3px 4px rgba(0,0,0,0.35),
    0 3px 4px rgba(0,0,0,0.45);
}

.tama-note{
  margin:12px 0 0;
  font-size:13px;
  text-align:center;
  color:var(--paper);
  opacity:0.8;
}

.tama-reset{
  margin:22px 0 0;
  text-align:center;
}

.tama-reset a{
  display:inline-block;
  padding:15px 34px;
  background:var(--yellow);
  color:var(--navy-deep);
  border:3px solid var(--gold-dark);
  border-radius:50% / 44%;
  font-family:"Oswald","Barlow",sans-serif;
  font-size:14px;
  letter-spacing:0.8px;
  text-transform:uppercase;
  text-decoration:none;
  box-shadow:0 3px 0 rgba(0,0,0,0.35);
}

.tama-reset a:hover,
.tama-reset a:focus-visible{
  background:#ffd75e;
  text-decoration:none;
}

.tama-reset a:active{
  transform:translateY(2px);
  box-shadow:0 1px 0 rgba(0,0,0,0.35);
}

/* ---------- the four icon cards ---------- */

.tama-cards{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  max-width:840px;
  margin:20px auto 0;
  padding:0;
  list-style:none;
}

.tama-cards li{
  flex:1 1 170px;
  max-width:200px;
  padding:16px 12px 18px;
  background:#0A2340;
  border:1px solid var(--gold-dark);
  border-radius:6px;
  text-align:center;
}

.tama-ico{
  display:block;
  width:34px;
  height:30px;
  margin:0 auto 12px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  image-rendering:pixelated;
}

.tama-cards b{
  display:block;
  margin-bottom:6px;
  font-family:"Oswald","Barlow",sans-serif;
  font-size:15px;
  letter-spacing:0.5px;
  color:var(--yellow);
}

.tama-cards li span:last-child{
  display:block;
  font-size:13px;
  line-height:1.4;
  color:var(--paper);
}

.tama-ico-fork{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 6' fill='%23C7CDB3'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3C/svg%3E"); }
.tama-ico-game{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' fill='%23C7CDB3'%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3C/svg%3E"); }
.tama-ico-toilet{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' fill='%23C7CDB3'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3C/svg%3E"); }
.tama-ico-heart{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' fill='%23C7CDB3'%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3C/svg%3E"); }

.tama-hatched{
  margin:22px 0 0;
  text-align:center;
  font-family:"Oswald","Barlow",sans-serif;
  font-size:15px;
  letter-spacing:0.5px;
  color:var(--yellow);
}

/* ---------- the are-you-sure box ---------- */

.tama-ask{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(2,10,20,0.78);
  z-index:60;
}

.tama-ask[hidden]{ display:none; }

.tama-ask-box{
  width:100%;
  max-width:380px;
  padding:26px 24px 22px;
  background:var(--panel-blue);
  border:3px solid var(--gold-dark);
  text-align:center;
}

.tama-ask-head{
  margin:0 0 10px;
  font-family:"Oswald","Barlow",sans-serif;
  font-size:20px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  color:var(--yellow);
}

.tama-ask-text{
  margin:0 0 22px;
  font-size:14px;
  color:var(--paper);
}

.tama-ask-row{
  display:flex;
  gap:12px;
  justify-content:center;
}

.tama-ask-row button{
  padding:12px 20px;
  font-family:"Oswald","Barlow",sans-serif;
  font-size:14px;
  letter-spacing:0.6px;
  text-transform:uppercase;
  cursor:pointer;
  border:3px solid var(--gold-dark);
  background:transparent;
  color:var(--yellow);
}

.tama-ask-yes{
  background:var(--yellow);
  color:var(--navy-deep);
  border-radius:50% / 44%;
}

.tama-ask-yes:hover{ background:#ffd75e; }

.tama-ask-no:hover{
  background:var(--yellow);
  color:var(--navy-deep);
}
