@charset "UTF-8";

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  font-family:
    "Pretendard",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    "Yu Gothic",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    "Helvetica Neue",
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.5px;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  /*background: linear-gradient(180deg, #f4fbff 0%, #e7f4ff 100%);*/
  background-image: url("../asset/bg.png");
  color: #1f2a37;
}

.card {
  position: relative;
  max-width: 460px;
  background: #fff;
  border-radius: 20px;
  margin: 70px 20px;
  padding: 22px 15px;
  box-shadow: 0 12px 30px rgba(31, 42, 55, 0.12);
}

.animal_selector {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  text-align: center;
}

.animal_button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #f4fbff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.12s;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 4px rgba(31, 42, 55, 0.12);
}

.animal_button + .animal_button {
  margin-left: 6px;
}

.animal_button .btn-emoji {
  display: block;
  padding: 9px 0;
  font-size: 26px;
  line-height: 32px;
}

.animal_button:hover {
  background: #eee;
}

.animal_button.active {
  background: #333;
  transform: scale(1.04);
}

h1 {
  font-size: 24px;
  line-height: 28px;
  text-align: center;
}

.guide {
  margin-top: 10px;
  text-align: center;
  color: #4b5563;
}

.pet_zone {
  position: relative;
  margin-top: 16px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #000;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-sizing: border-box;
}

.pet_zone.is-kitaro {
  background-color: #ff5858;
}

.pet_zone.is-gegero {
  background-color: #5ed65b;
}

.pet_zone.is-mizuki {
  background-color: #ffea59;
}

.pet_zone .img-normal,
.pet_zone .img-happy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  will-change: transform, opacity;
  transition: opacity 0.1s ease;
}

.pet_zone .img-normal {
  opacity: 1;
  z-index: 1;
}

.pet_zone .img-happy {
  opacity: 0;
  z-index: 2;
}

.pet_zone.petting .img-normal {
  opacity: 0;
}

.pet_zone.petting .img-happy {
  opacity: 1;
}

.pet_zone img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.area_count {
  margin-top: 16px;
  text-align: center;
}

.count {
  display: block;
  font-weight: 500;
  font-size: 18px;
  line-height: 30px;
}

.area_count .number {
  display: inline-block;
  margin-left: 6px;
  color: #ff6a6a;
  font-size: 24px;
  line-height: 30px;
  vertical-align: top;
}
