.modle-bg {
    background-color: #a2e4fb;
    overflow: hidden;
    position: relative;
}
.main-container *:not(i) {
    font-family: '微軟正黑體';
}
.modle-body {
    position: absolute;
}
.modle-bg .footer {
    min-width: 1250px;
    max-width: 1250px;
    width: 1250px;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    position: absolute;
    bottom: 0;
}
.p-body {
    min-width: 1250px;
    max-width: 1250px;
    width: 1250px;
    background-color: rgba(255, 255, 255,0.5);
    padding: 20px;
    border-radius: 20px;
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    top: 80px;
    left: 0;
}
.p-header {
    width: 1250px;
    position: absolute;
}
.mini-header {
    background-color: #EEEEEE;
    min-height: 80px;
    border-radius: 20px 20px 0 0;
}
.mini-header > div {
    min-height: 80px;
    border-radius: 20px 20px 0 0;
}
.mini-header .bird {
    height: 318%;
    top: -154%;
    left: -66%;
}
.mini-header-wrong .bird {
    left: -25%;
}
.mini-body {
    height: calc(100% - 80px);
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 0 0 20px 20px;
    font-family: '微軟正黑體' !important;
}
.z-30 {
    z-index: 30;
}
.p-btn {
    width: 110px;
    height: 30px;
    border: none;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    transition: all .1s ease;
}
.p-btn:active {
    transform: translateY(3px)
}
.p-btn-style-1 {
    height: 38px;
    transition: all .1s linear;
}
.p-btn-style-1 i {
    margin-right: -0.5rem;
}
.p-btn-style-1:hover {
    text-decoration: underline;
}
.p-btn-style-2 {
    background-color: var(--bs-yellow);
    transition: all .1s linear;
    transform: translateY(-5px);
    box-shadow: 0 5px 0 0 #dfa806;
}
.p-btn-style-2:active {
    transform: translateY(0px);
    box-shadow: 0 0 0 0 #d19d00;
}
.p-btn-style-3 {
    min-width: 90px;
    min-height: 90px;
    cursor: pointer;
    background-color: white;
    transform: translate(-3px, -3px);
    box-shadow: 4px 5px 0 #dee2e6;
    border: 1px solid #eeeeee
}
.p-btn-style-3:hover {
    background-color: #FEF8D6;
    border: 1px solid #FEEA87;
    box-shadow: 4px 5px 0 #FEEA87;
}
.p-btn-style-3:active {
    transform: translate(0, 0);
    background-color: #FEF8D6;
    border: 1px solid #FEEA87;
    box-shadow: 1px 2px 0 #FEEA87;
}
.p-btn-style-4 {
    border: 2px solid #dee2e6;
    transform: translateY(-3px);
    box-shadow: 0 3px 0 #dee2e6;
}
.p-btn-style-4.active {
    border: 2px solid rgba(132, 216, 255);
    filter: drop-shadow(0 0 10px rgba(132, 216, 255));
    box-shadow: 0 3px 0 rgba(132, 216, 255);
}
.p-btn-style-4:active {
    transform: translateY(0);
    border: 2px solid rgba(132, 216, 255);
    filter: drop-shadow(0 0 10px rgba(132, 216, 255));
    box-shadow: 0 0 0 rgba(132, 216, 255);
}
.p-btn-style-4:hover {
    background-color: rgba(200, 200, 200, 0.1);
}
.p-btn-style-4 + div {
    display: none;
}
.p-btn-style-4.active + div {
    display: block;
}
.p-btn-style-5 {
    background-color: #137500;
    color: white;
    transform: translateY(-3px);
    transition: all .1s ease;
    box-shadow: 0 3px 0 0 #0e5200;
}
.p-btn-style-5:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 #0e5200;
}
.p-btn-style-6 {
    background-color: #0060ba;
    color: white;
    transform: translateY(-3px);
    transition: all .1s ease;
    box-shadow: 0 3px 0 0 #003f7a;
}
.p-btn-style-6:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 #003f7a;
}
.p-btn-style-7 {
    background-color: #ce2b06;
    color: white;
}
.p-btn-style-7:hover {
    background-color: #b32908;
    color: white;
}
.p-btn-style-5.disabled , .p-btn-style-6.disabled, .p-btn-style-7.disabled {
    opacity: 0.65;
    pointer-events: none;
}
.p-btn-style-8 {
    background-color: #89279b;
    color: white;
}
.p-btn-style-8:hover {
    background-color: #9c29b1;
    color: white;
}
.p-btn-style-9 {
    background-color: #ebb410;
    color: white;
}
.p-btn-style-9:hover {
    background-color: #ffc107;
    color: white;
}
.p-btn-style-10 {
    background-color: #0160ba;
    color: white;
    box-shadow: 0 3px 0 0 #034079;
}
.p-btn-style-10:active {
    box-shadow: 0 0 0 0 #034079;
}
.p-btn-style-11 {
    background-color: white;
    color: #999999;
    box-shadow: 0 3px 0 0 #999999;
}
.p-btn-style-11:hover {
    color: #0160ba;
    box-shadow: 0 3px 0 0 #034079;
}
.p-btn-style-11:active {
    box-shadow: 0 0 0 0 #034079;
}
.p-btn-style-12 {
    transition: all .1s ease;
    color: #555555;
    font-size: 20px;
    border: 0;
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 3px 0 0 #888888;
    border-radius: 5px;
}
.p-btn-style-12:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 #888888;
}
.p-btn-style-13 {
    background-color: #ffd700;
    color: #0060ba;
    transform: translateY(-3px);
    transition: all .1s ease;
    box-shadow: 0 3px 0 0 #b29709;
}
.p-btn-style-13:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 #b29709;
}
.p-btn-style-14 {
    background-color: #DDDDDD;
    color: #555555;
    transform: translateY(-3px);
    transition: all .1s ease;
    box-shadow: 0 3px 0 0 #999999;
}
.p-btn-style-14:active {
    transform: translateY(0);
    box-shadow: 0 0 0 0 #999999;
}
.p-btn-style-15 {
    background-color: #be78ea;
    color: white;
    border-radius: 50%;
    border: none;
}
.p-btn-style-16 {
    background-color: white;
    color: #be78ea;
    border-radius: 50%;
    border: none;
}
.p-btn-style-17 {
    background-color: #137500;
    transition: all .1s linear;
    transform: translateY(-5px);
    box-shadow: 0 5px 0 0 #0e5200;
}
.p-btn-style-17:active {
    transform: translateY(0px);
    box-shadow: 0 0 0 0 #0e5200;
}
.text-color-1 {
    color: #0097a7;
}
.bird-gif {
    height: 170%;
    top: -50%;
    left: -10%
}
.p-p-1 {
    padding: 1%;
}
.p-p-3 {
    padding: 3%;
}
.p-me-3 {
    margin-right: 3%;
}
.p-me-10 {
    margin-right: 10%;
}
.p-mt-1 {
    margin-top: 1%;
}
.p-mt-3 {
    margin-top: 3%;
}
.tip-container {
    top: 14%;
    right: 5%;
    width: 45px;
    height: 40px;
    transition: width .2s linear;
    overflow: hidden;
    z-index: 3;
    transform-origin: right center;
}
.tip-container.show {
    width: 225px;
}
.tip-container .inner{
    width: 225px;
}
.tip-btn {
    width: 40px;
    aspect-ratio: 1;
}
.tip-content {
    padding: 2% 4%;
    width: 180px;
}
[card] {
    background-color: #FFFFFF;
    border: 2px solid #dddddd;
    transform: translateY(-3px);
    box-shadow: 0 5px 0 #dddddd;
    transition: transform .1s linear, box-shadow .1s linear;
}
[card]:hover {
    background-color: #0060ba18;
    border: 2px solid #0060ba;
    box-shadow: 0 5px 0 #0060ba;
}
[card].active {
    background-color: #0060ba18;
    border: 2px solid #0060ba;
    transform: translateY(1px);
    box-shadow: 0 1px 3px #0060ba;
}
[card]:active {
    background-color: #0060ba18;
    border: 2px solid #0060ba;
    transform: translateY(1px);
    box-shadow: 0 1px 3px #FEEA87;
}
[card] div {
    top: -10px;
    right: -10px;
    width: 25px;
    font-size: 20px;
    background: white;
    display: none;
}
[card] div i {
    position: absolute;
    top: -3px;
    left: 2px;
}
[card].success, [card].wrong {
    pointer-events: none; 
}
[card].success div.success {
    border: 1px solid #137500;
    color: #137500;
    display: block;
}
[card].wrong div.wrong {
    border: 1px solid #ce2b06;
    color: #ce2b06;
    display: block;
}
[player] * {
    pointer-events: none;
}
.p-bg-style-1 {
    background-color: white;
    border: 1px solid #FEF8D6;
}
.p-bg-style-2 {
    background-color: rgba(220,220,220,0.5);
}
.p-bg-style-3 {
    background-image: linear-gradient(#FEF8D6,#FFEF9F);
}
.p-bg-style-4 {
    background-color: #89279b;
    color: white;
}
.p-bg-style-5 {
    background-color: #ff7070;
    color: #bd0808;
}
.p-bg-style-6 {
    background-color: #bdff7c;
    color: #40aa29;
}
.p-bg-style-7 {
    background-color: #ebcaff;
    color:  #be78ea;
}
.p-bg-style-8 {
    border-radius: 5px;
    background-color: #4ad9f9;
    border: 2px dashed #116d81;
}
.p-bg-style-9 {
    background-color: white;
    transform: translate(-3px, -3px);
    box-shadow: 4px 5px 0 #dee2e6;
    border: 1px solid #eeeeee;
}
.p-text-style-1 {
    color: #c5c5c5;
}
.p-text-style-2 {
    color: #888888;
}
.p-text-style-3 {
    color: #555555;
}
.p-border-style-1 {
    border: 1px dashed #6c757d;
}
.drop-item * {
    pointer-events: none;
}
.item-container {
    border: 3px dashed #cccccc;
}
.item-container * {
    margin: 0 5px;
}
.p-border-style-2 {
    border-bottom: 2px solid var(--custom-color-1);
}
.drop-box div.success, .drop-box div.wrong {
    display: none;
    font-size: 46px;
    top: -40%;
    right: -40%;
}
.drop-box div.success {
    color: var(--custom-color-12);
}
.drop-box div.wrong {
    color: var(--custom-color-2);
}
.drop-box.success div.success {
    display: flex;
}
.drop-box.wrong div.wrong {
    display: flex;
}
.w-48px {
    width: 48px;
}
.min-w-48px {
    min-width: 48px;
}
.w-200px {
    width: 200px;
}
.w-min-200px {
    min-width: 200px;
}
.bird-info {
    max-height: 95%;
    overflow-y: auto;
}
.z-1 {
    z-index: 1;
}
.class-map {
    width: 1920px;
    height: 1080px;
}
.head-icon {
    top: 20px;
    left: 30px;
    cursor: pointer;
}
.class-map .map-img {
    cursor: grab;
}
.p-rounded {
    border-radius: 20px;
}
.class-btn-container {
    width: 35px;
}
.class-btn-shadow {
    background-color: #cfaf23;
    top: 15px;
    left: 5px;
    height: 5px;
    z-index: 1;
}
.class-btn {
    background-color: #fce271;
    top: 15%;
    left: 15%;
    aspect-ratio: 1.1;
    border-radius: 50%;
    box-shadow: 0 2.5px 0 #cfaf23;
    transform: translateY(0px);
    z-index: 2;
    cursor: pointer;
}
.class-btn i{
    font-size: 12px;
    margin-top: -2px;
    pointer-events: none;
}
.class-btn-container:not(.disabled):not(.complate) .class-btn:hover {
    box-shadow: 0 2px 0 #cfaf23;
    transform: translateY(0.5px);
}
.class-btn:active {
    transform: translateY(2.5px) !important;
    box-shadow: 0 0 0 !important;
}
.class-btn:active ~ .class-btn-shadow {
    height: 0;
}
.class-btn-container .info {
    font-size: 10px;
    left: 0;
    top: -60%;
    z-index: 3;
    background-color: white;
    border: 1px solid #e6c949;
    animation: updown 1s linear infinite;
}
.info::after{
    position: absolute;
    bottom: -4px;
    left: calc(50% - 4px);
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #e6c949 transparent transparent transparent;
}
.class-btn-container .fa-check {
    display: none;
}
.class-btn-container.complate .info,
.class-btn-container.disabled .info {
    display: none;
}
.class-btn-container.disabled img {
    display: none;
}
.class-btn-container.complate img {
    display: none;
}
.class-btn-container.complate .fa-star {
    display: none;
}
.class-btn-container.complate .fa-check {
    display: inline-block;
}
.class-btn-container.complate .class-btn:active, .class-btn-container.disabled .class-btn:active {
    box-shadow: 0 2.5px 0 #cfaf23;
    transform: translateY(0px);
}
.class-btn-container.complate .class-btn:active ~ .class-btn-shadow,
.class-btn-container.disabled .class-btn:active ~ .class-btn-shadow {
    height: 16%;
}
.class-btn-container.disabled{
    filter: grayscale(80%);
    pointer-events: none;
}
.class-btn-container.end-btn {
    transform: scale(1.6);
}
.class-btn-container.disabled .class-btn{
    cursor: auto
}
@keyframes updown {
    0%, 60%, 100% {
        transform: translateY(0px)
    }
    30% {
        transform: translateY(-2px);
    }
    80% {
        transform: translateY(3px);
    }
}
.position-right {
    right: 0
}
.position-bottom {
    bottom: 0
}
.btn-list {
    top: 25px;
    right: 20px;
}
.btn-prize-list {
    top: 70px;
    right: 20px;
}
.back-list-btn {
    color: #0060ba;
}
.back-list-btn:hover {
    color: #00519d;
}
.unit-btn {
    background-color: #cccccc;
}
.unit-btn *{
    pointer-events: none;
}
.unit-btn:not(.disabled) {
    cursor: pointer;
}
.unit-btn:not(.disabled) .lock-icon {
    display: none;
}
.unit-btn.disabled {
    background-color: #666666;
}
.list-class-btn {
    background-color: #cccccc;
}
[btn-l-n] {
    background-color: black;
    color: white;
}
[btn-l-n] *{
    pointer-events: none;
}
[btn-l-n].disabled {
    pointer-events: none;
    background-color: transparent;
}
.lock-icon {
    bottom: 40px;
    left: 141px;
}
.lock-icon i {
    color: white;
}
.list-btn-container, .list-lesson-btn-container {
    width: 640px;
}
.list-btn-close, .achieve-btn-close {
    top: 10px;
    right: 20px;
}
.list-btn-close i, .achieve-btn-close i{
    pointer-events: none;
}
[item-img] {
    top: 0;
    left: 0;
}
.unit-btn.disabled [item-img] {
    filter: grayscale(100%);
}
@media (max-width: 635px) {
    .list-btn-container, .list-lesson-btn-container {
        width: 300px;
    }
}
[btn-unit-number="1"][btn-lesson-number="0"] {
    top: 250px;
    left: 1476px;
}
[btn-unit-number="1"][btn-lesson-number="4"] {
    top: 297px;
    left: 1463px;
}
[btn-unit-number="1"][btn-lesson-number="8"] {
    top: 308px;
    left: 1406px;
}
[btn-unit-number="1"][btn-lesson-number="12"] {
    top: 276px;
    left: 1358px;
}
[btn-unit-number="1"][btn-lesson-number="16"] {
    top: 225px;
    left: 1324px;
}
[btn-unit-number="2"][btn-lesson-number="0"] {
    top: 215px;
    left: 1271px;
}
[btn-unit-number="2"][btn-lesson-number="4"] {
    top: 243px;
    left: 1228px;
}
[btn-unit-number="2"][btn-lesson-number="8"] {
    top: 255px;
    left: 1131px;
}
[btn-unit-number="2"][btn-lesson-number="12"] {
    top: 163px;
    left: 1141px;
}
[btn-unit-number="3"][btn-lesson-number="0"] {
    top: 118px;
    left: 1078px;
}
[btn-unit-number="3"][btn-lesson-number="4"] {
    top: 122px;
    left: 982px;
}
[btn-unit-number="4"][btn-lesson-number="0"] {
    top: 186px;
    left: 941px;
}
[btn-unit-number="4"][btn-lesson-number="4"] {
    top: 221px;
    left: 877px;
}
[btn-unit-number="5"][btn-lesson-number="0"] {
    top: 189px;
    left: 824px;
}
[btn-unit-number="5"][btn-lesson-number="4"] {
    top: 235px;
    left: 758px;
}
[btn-unit-number="6"][btn-lesson-number="0"] {
    top: 274px;
    left: 698px;
}
[btn-unit-number="6"][btn-lesson-number="4"] {
    top: 369px;
    left: 696px;
}
[btn-unit-number="7"][btn-lesson-number="0"] {
    top: 432px;
    left: 761px;
}
[btn-unit-number="7"][btn-lesson-number="4"] {
    top: 490px;
    left: 793px;
}
[btn-unit-number="8"][btn-lesson-number="0"] {
    top: 543px;
    left: 789px;
}
[btn-unit-number="8"][btn-lesson-number="4"] {
    top: 597px;
    left: 753px;
}
[btn-unit-number="9"][btn-lesson-number="0"] {
    top: 640px;
    left: 706px;
}
[btn-unit-number="9"][btn-lesson-number="4"] {
    top: 630px;
    left: 645px;
}
[btn-unit-number="10"][btn-lesson-number="0"] {
    top: 585px;
    left: 596px;
}
[btn-unit-number="10"][btn-lesson-number="4"] {
    top: 564px;
    left: 495px;
}
[btn-unit-number="11"][btn-lesson-number="0"] {
    top: 620px;
    left: 466px;
}
[btn-unit-number="11"][btn-lesson-number="4"] {
    top: 678px;
    left: 502px;
}
[btn-unit-number="12"][btn-lesson-number="0"] {
    top: 665px;
    left: 593px;
}
[btn-unit-number="12"][btn-lesson-number="4"] {
    top: 728px;
    left: 671px;
}
[btn-unit-number="13"][btn-lesson-number="0"] {
    top: 762px;
    left: 779px;
}
[btn-unit-number="13"][btn-lesson-number="4"] {
    top: 831px;
    left: 821px;
}
[btn-unit-number="14"][btn-lesson-number="0"] {
    top: 869px;
    left: 953px;
}
[btn-unit-number="15"][btn-lesson-number="0"] {
    top: 923px;
    left: 1070px;
}
[result-item]{
    cursor: pointer;
}
[result-item]:hover .main-item{
    transform: scale(1.2);
}
[result-item] .main-item{
    filter: brightness(0)
            drop-shadow(0 0 0 white) 
            drop-shadow(-2px -2px 0 white)
            drop-shadow(2px -2px 0 white)
            drop-shadow(-2px 2px 0 white)
            drop-shadow(2px 2px 0 white);
    transition: transform .3s linear;
}
[result-item] .item-shadow {
    display: none;
    filter: brightness(100);
    width: calc(100% + 20px);
    top: -10px;
    left: -10px;
    pointer-events: none;
}
[result-item].show .main-item{
    filter: brightness(1)
            drop-shadow(0 0 0 white) 
            drop-shadow(-2px -2px 0 white)
            drop-shadow(2px -2px 0 white)
            drop-shadow(-2px 2px 0 white)
            drop-shadow(2px 2px 0 white);
}
[result-item].show .item-shadow{
    display: none;
}
[result-item="1"] {
    width: 10.3%;
    top: 30.7%;
    left: 41.9%;
}
[result-item="2"] {
    width: 11.2%;
    top: 58.5%;
    left: 27.4%;
}
[result-item="3"] {
    width: 13.7%;
    top: 73%;
    left: 77%;
}
[result-item="4"] {
    width: 10.2%;
    top: 12.1%;
    left: 83.5%;
}
[result-item="5"] {
    width: 9.5%;
    top: 52%;
    left: 19%;
}
[result-item="6"] {
    width: 5.2%;
    top: 31%;
    left: 88.6%;
}
[result-item="7"] {
    width: 14.2%;
    top: 58%;
    left: 55.2%;
    transform: rotate(349deg);
    z-index: 99;
}
[result-item="8"] {
    width: 17.2%;
    top: 66.3%;
    left: 44.6%;
}
[result-item="9"] {
    width: 11.8%;
    top: 18.5%;
    left: 18.4%;
}
[result-item="10"] {
    width: 19.2%;
    top: 57.6%;
    left: -1.2%;
}
[result-item="11"] {
    width: 10.2%;
    top: 39%;
    left: 5.4%;
    z-index: 99;
}
[result-item="12"] {
    width: 8.5%;
    top: 62.8%;
    left: 35.7%;
}
[result-item="13"] {
    width: 11.4%;
    top: 25.8%;
    left: 7.6%;
}
[result-item="14"] {
    width: 8.2%;
    top: 45.8%;
    left: 84.6%;
}
[result-item="15"] {
    width: 10.8%;
    top: 19%;
    left: 64.7%;
}

/* 角色選擇頁面 */
.character-box {
    width: 20%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 20px;
    border-radius: 10px;
    transition: all 0.5s ease;
    position: absolute;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
}

.boy-box {
    left: 20%; 
}

.girl-box {
    left: 55%; 
}

.character-box img {
    width: 15vw;
    max-width: 187.5px;
    margin-left: 10%;
}

.character-box .character-flex-box {
    width: 70vw;
    max-width: 875px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.character-box .info-box {
    width: 48vw;
    max-width: 600px;
}

.character-box .hidden-content {
    display: none;
    text-align: center;
    color: #999999 !important;
}

.character-box.active {
    z-index: 2;
}

.character-container.stage1 .character-box.active {
    left: 37.5%; 
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px #0097a7
}

.character-container.stage1 .character-box:not(.active) {
    left: 35.5%;
    top: 2%; 
    z-index: 1;
}

.character-container .character-box.selected {
    border: 3px solid #0160ba;
}

.name-box {
    height: 38px;
    width: 58px;
    margin: auto;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.name-box *{
    font-family: 微軟正黑體;
}

.name-box div {
    display: flex;
    width: 100%; 
    right: 0; 
    position: absolute;
    justify-content: end; 
    align-items: center;
}

.name {
    color: #AAAAAA;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.character-container.stage1 .character-box.active .name {
    color: #ff9741;
}

.character-container:not(.stage1) .character-box:hover {
    transform: scale(1.1);
}

.character-box:hover .name{
    color: #ff9741;
}

.character-container.stage2 .character-box .name-box {
    width: 142px;
}

.character-container.stage2 .character-box.active {
    width: 70%;
    left: 15%;
    cursor: auto;
}

.character-container.stage2 .character-box:not(.active) {
    width: 70%;
    left: 13%; 
    top: 2%; 
}

.character-container.stage2 .character-box .hidden-content {
    display: block;
}

.p-fs-1 {
    font-size: 16px;
    font-weight: bold;
    color: #555555;
    margin: 0;
}

.p-fs-2 {
    font-size: 14px;
    font-weight: bold;
    color: #222222;
    margin: 0 0 10px 0;
}

.p-fs-3 {
    color: #0160ba;
    font-family: 微軟正黑體;
    font-weight: bold;
    font-size: 32px;
    text-shadow: -2px -2px 0 white,
    2px -2px 0 white,
    -2px 2px 0 white,
    2px 2px 0 white;
}

.pinyin-switch {
    border-radius: 100px;
    border: none;
    background-color: #0160ba;
    color: white;
    min-width: 110px;
}
.pinyin-switch .eye-close {
    display: none;
}
.pinyin-switch .eye-open {
    display: block;
}
.pinyin-switch.close .eye-close {
    display: block;
}
.pinyin-switch.close .eye-open {
    display: none;
}

.pinyin-close .mini-pinyin {
    display: none;
}

@media (min-width: 992px) {
    .p-fs-1 {
        font-size: 20px;
    }

    .p-fs-2 {
        font-size: 18px;
    }

    .p-fs-3 {
        margin-top: 20px;
    }
    
    .character-container.stage2 .character-box .name-box {
        width: 144px;
    }
}

/* 禁止iphone雙擊縮放 */
body {
    touch-action: manipulation;
}

.arrow-down { display: none; }
.arrow-up   { display: inline-block; }

button.collapsed .arrow-down { display: inline-block; }
button.collapsed .arrow-up   { display: none; }

.btn-collapse { opacity: 0.5;}

.tone-square {
    border: 2px #bd0808 solid;
    margin-left: 4px;
    padding: 8px;
    height: 30px;
}

.pinyin-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 3px solid #ddd;
    transform: translateY(-50%);
    z-index: 0;
}

.pinyin-arrow {
    width: 30px;
    height: 30px
}

.tone-red {
    color: #bd0808;
}

.map-img {
  touch-action: none;  /* 阻止預設手勢（捲動、雙指縮放…） */
  cursor: grab;
}

.prize-player {
    position: absolute;
    left: 90px;
}

.prize-song-player {
    position: absolute;
    right: 0;
}

.bird-dialog {
    .img-bird {
        height: 200px;
        transform: scaleX(-1);
    }

    .text-bird {
        background-color: #f2f2f2;
        color: #333;
        padding: 1rem;
        border-radius: 8px;

        &.correct {
        background-color: #d4edda;
        color: #155724;
        }

        &.wrong {
        background-color: #f8d7da;
        color: #721c24;
        }
    }
}

.quest-container .style-spword {
    font-family: '新細明體' !important;
    font-weight: 100 !important;
}

.prize-description-box {
    top: 5%;
    width: 45%;
    height: 90%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 100;
}

.prize-description-box.postion-left {
    left: 5%;
}

.prize-description-box.postion-right {
    right: 5%;
}

.prize-description-box .prize-desc-close-btn {
    width: 32px;
    height: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
}

.prize-description-box .prize-desc-image {
    width: 100px;
    cursor: pointer;
    z-index: 100;
}

.prize-description-box .prize-desc-title-box {
    color: #0da8c1;
}

.prize-description-box .prize-desc-title-box .prize-song-player {
    position: relative;
    transform: scale(0.75);
    width: 50px;
    justify-content: center;
    align-items: center;
}

.prize-description-box .prize-desc-content {
    overflow-y: auto;
}

.achieve-box .achieve-prizelist-box {
    margin-left: 7.5rem;
    min-width: 250px;
    min-height: 500px;
    height: fit-content;
    width: 30%;
    background-color: rgba(248, 246, 242, 0.7)
}

.achieve-box .achieve-prizelist-box .achieve-prize-image{
    width: 30%;
    height: fit-content;
    cursor: pointer;
}

.achieve-box .achieve-avatar-box {
    margin-left: 2.5rem;
    min-width: 250px;
    width: 30%;
    background-color: rgba(248, 246, 242, 0.7)
}

.achieve-box .achieve-avatar-box .achieve-avatar-btn {
    color: white;
    font-weight: bold;
    background-color: #0da8c1;
    cursor: pointer;
    width: 7rem;
}

/* ---- 無障礙：鍵盤焦點與可點元素 ---- */

/* 由 <div> 改為 <button> 的圖示／文字控制鈕：清除瀏覽器預設外觀，保留既有定位／尺寸 class */
.main-container button.btn-home,
.main-container .list-btn-close,
.main-container .achieve-btn-close,
.main-container .prize-desc-close-btn,
.main-container .achieve-avatar-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
}
.main-container button.btn-home {
    display: inline-flex;
    align-items: center;
}
.main-container .achieve-avatar-btn {
    padding: 0 0.5rem;
}
.main-container .list-btn-close,
.main-container .achieve-btn-close,
.main-container .prize-desc-close-btn {
    color: #ffffff;
}
.main-container .achieve-avatar-btn {
    color: #ffffff;
    background-color: #0da8c1;
}

/* 鍵盤焦點外框（比照 sentence_game.css 的做法） */
.main-container :focus-visible {
    outline: 3px solid #1a608b;
    outline-offset: 2px;
    border-radius: 4px;
}
.main-container [role="button"] {
    cursor: pointer;
}

/* 拖曳題型：以鍵盤「拿起」中的拼音卡 */
.main-container .drop-item.kb-picked {
    outline: 3px solid #0060ba;
    outline-offset: 2px;
    box-shadow: 0 0 10px 2px rgba(0, 96, 186, 0.6);
}



