/* =============================================================
   IDP Game Totem — Frontend CSS v1.1.0
   Tipografia: DM Sans + DM Mono (fontes locais — offline safe)
   Paleta:
     --totem-dark:    #0d1520  (fundo escuro)
     --totem-terra:   #c1654a  (terracota IDP)
     --totem-light:   #f0f0f0  (fundo claro das perguntas)
     --totem-green:   #4caf50
     --totem-red:     #e53935
   ============================================================= */

/* ── FONTES LOCAIS ────────────────────────────────────────── */
/* Execute download-fonts.py para baixar os arquivos woff2    */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/dm-sans-300.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/dm-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/dm-sans-600.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/dm-sans-700.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/dm-sans-800.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-mono-400.woff2') format('woff2');
}
@font-face {
    font-family: 'DM Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/dm-mono-500.woff2') format('woff2');
}


   ============================================================= */

/* ── RESET / BASE ─────────────────────────────────────────── */
* {
	font-family: 'DM Sans', sans-serif!important;
}

.totem-game,
.totem-game * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: 'DM Sans', sans-serif!important;
}

.totem-game {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #0d1520;
    user-select: none;
}

/* ── TELAS ────────────────────────────────────────────────── */

.totem-screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.totem-screen--active {
    display: flex;
    opacity: 1;
}

/* ── TELA 01: IDLE ────────────────────────────────────────── */

.totem-screen--idle {
    background: #0d1520;
}

.totem-idle__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.totem-idle__video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.totem-idle__overlay {
	display:none;
    position: absolute;
    inset: 0;
    background: rgba(13, 21, 32, 0.65);
}

.totem-idle__content {
    position: relative;
    z-index: 1;
    padding: 210px 0px 0pc 180px;
}

.totem-idle__logo {
    width: 80px;
    height: auto;
}

.totem-idle__cta {
    position: absolute;
    z-index: 2;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 750px;
    padding: 28px 24px;
    background: #c1654a;
    color: #fff!important;
    font-family: 'DM Mono', sans-serif!important;
    font-size: 35px!important;
    font-weight: 700!important;
    letter-spacing: 0.13em!important;
    text-transform: uppercase!important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.totem-idle__cta:active {
    background: #a8553c;
    transform: translateX(-50%) scale(0.98);
}

/* ── TELA 02: LOADING ─────────────────────────────────────── */

.totem-screen--loading {
    background: #0d1520;
    align-items: center;
    justify-content: center;
}

.totem-loading__bg {
    position: absolute;
    inset: 0;
    background: #0d1520;
    opacity: 0.9;
}

.totem-loading__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Spinner */
.totem-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.15);
    border-top-color: #fff;
    animation: totem-spin 0.9s linear infinite;
}

@keyframes totem-spin {
    to { transform: rotate(360deg); }
}

.totem-loading__text {
    font-family: 'DM Mono', monospace!important;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
	width:550px;
}

/* ── TELA 03-07: PERGUNTA ─────────────────────────────────── */

.totem-screen--question {
    background: #f0f0f0;
    overflow-y: auto;
}

#totem-question-content {
    width: 100%;
    min-height: 100%;
}

.totem-q {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header escuro */
.totem-q__header {
    background: #1a1f2e;
    padding: 70px 80px;
    flex-shrink: 0;
}

.totem-q__header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.totem-q__progress-label,
.totem-q__counter {
    font-family: 'DM Mono', monospace;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Barra de progresso */
.totem-q__progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
}

.totem-q__progress-bar {
    height: 100%;
    background: #c1654a;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Tag de área */
.totem-q__area-wrap {
    display: flex;
}

.totem-q__area-tag {
    display: inline-block;
    background: #2d3345;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
}

/* Body */
.totem-q__body {
    flex: 1;
    padding: 50px 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card professor */
.totem-q__professor {
    background: #fff;
    border-radius: 12px;
    padding: 25px 45px;
    display: flex;
	flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.totem-q__prof-foto {
    width: 103px;
    height: 103px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #c1654a;
}

.totem-q__prof-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.totem-q__prof-nome {
    font-size: 27px;
    font-weight: 700;
    color: #1a1a1a;
}

.totem-q__prof-desc {
    font-size: 20px;
    color: #666;
    font-weight: 400;
}

.totem-q__prof-label {
    font-size: 20px;
    color: #0A111A;
    margin: 0 0 12px;
    font-weight: 400;
	padding:20px;
	background:#EEEEEE;
	border: 1px solid #D5D5D5;
	border-radius:11px;
	width:100%
}

.totem-q__prof-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Card enunciado */
.totem-q__enunciado-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 25px 45px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	margin-top:80px;
	margin-bottom:50px;
}

.totem-q__enunciado {
    font-size: 30px;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
    font-weight: 400;
}

/* Opções */

button[disabled] {
	opacity:1!important;
}

.totem-q__options {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.totem-q__option-btn {
    width: 100%!important;
    background: #fff!important;
    border: 1.5px solid #e0e0e0!important;
    border-radius: 135px!important;
    padding: 30px 33px!important;
    display: flex!important;
    align-items: center!important;
    gap: 14px!important;
    cursor: pointer!important;
    text-align: left!important;
    transition: border-color 0.15s, background 0.15s, transform 0.1s!important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05)!important;
	white-space: normal;
    word-break: break-word;
}

.totem-q__option-btn:active {
    transform: scale(0.985);
}

.totem-q__opt-letter {
    width: 63px;
    height: 64px;
    border-radius: 50%;
    background: #c1654a;
    color: #fff;
    font-size: 32px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.totem-q__opt-text {
    font-size: 30px!important;
    color: #1a1a1a!important;
    line-height: 1.4!important;
    font-weight: 400!important;
}

/* Estados de feedback */

button[disabled], html input[disabled] {
	cursor: default;
	opacity: 1;
}

.totem-q__option--correct {
    background: #F3FBF0!important;
    border-color: #67805E!important;
}

.totem-q__option--correct .totem-q__opt-text {
    color: #2e7d32!important;
}

.totem-q__opt-letter--correct {
    background: #4caf50 !important;
}

.totem-q__option--wrong {
    background: #FFEEEE!important;
    border-color: #9C3A3A!important;
}

.totem-q__option--wrong .totem-q__opt-text {
    color: #c62828!important;
}

.totem-q__opt-letter--wrong {
    background: #F4CCCC !important;
	color:#9C3A3A!important;
}

/* Justificativa */
.totem-q__justificativa {
    font-size: 30px;
    color: #444;
    line-height: 1.5;
    padding: 50px 0;
}

.totem-q__just-label {
    font-weight: 700;
    color: #1a1a1a;
}

/* Botão avançar */
.totem-q__cta-wrap {
    margin-top: 4px;
}

.totem-q__btn-next {
    width: 100%;
    padding: 18px 24px;
    background: #fff!important;
    border: 1.5px solid #ccc!important;
    border-radius: 50px!important;
    font-size: 27px!important;
    font-weight: 600!important;
    letter-spacing: 0.12em!important;
    text-transform: uppercase!important;
    color: #727272!important;
    cursor: pointer;
    transition: all 0.2s;
	white-space: normal;
  word-break: break-word;
}

.totem-q__btn-next--correct {
    border-color: #677F5E!important;
	background-color:#F3FBF0!important;
    color: #4caf50!important;
}

.totem-q__btn-next:active {
    transform: scale(0.98);
}

/* ── TELA DE RESULTADO ────────────────────────────────────── */

.container-resultado-topo {
	width:100%;
}

.logo-resultado {
	display:flex;
	align-items:center
}
.logo-resultado svg {
	margin:0px auto;
	margin-bottom:90px;		
}

.logo-resultado svg path {
	fill:#000000;
}

.totem-result__trofeu {
	max-width:300px;
}

.totem-screen--result {
    background: #EEEEEE;
    align-items: center;
    padding: 40px 28px;
	padding-top:154px;
}

#totem-result-content {
    width: 100%;
    max-width: 934px;
	align-items: center;
  	display: flex;
  	flex-direction: column;
	justify-content: space-between;
    height: 100%;
	
}

.totem-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
	background: url('../img/bg-premiacao.webp') center no-repeat;
	padding: 65px 100px;
	background-size: cover;
	border-radius: 50px;
	width:100%;
}

.totem-result__icon {
    font-size: 64px;
    line-height: 1;
}

.totem-result__titulo {
	color: #FFF;
	text-align: center;
	font-size: 37.397px;
	font-style: normal;
	font-weight: 700;
	line-height: 120%; /* 44.876px */
	text-transform: uppercase;
	font-family: "DM Sans"!important;
}

.totem-result__placar {
    display: flex;
    align-items: baseline;
    gap: 4px;
	font-family: "DM Sans"!important;
}

.totem-result__num, .totem-result__den {
    color: #FFF;
	font-size: 116.682px;
	font-style: normal;
	font-weight: 900;
	line-height: 120%; /* 140.018px */
}

.totem-result__stars {
    display: flex;
    gap: 10px;
    font-size: 32px;
}

.totem-result__star {
    color: rgba(255,255,255,0.2);
    transition: color 0.3s;
}

.totem-result__star--on {
    color: #f5c518;
}

.totem-result__brinde {
	border-radius: 19.557px;
	border: 1.304px solid #D5D5D5;
	background: #FFF;    
	padding: 50px 45px;
    font-size: 15px;
    font-weight: 600;
    color: #f0c4b4;
    display: flex;
    align-items: center;
    gap: 45px;
	margin-top:60px;
}

.totem-result__brinde h4 {
	color: #0A111A;
	font-size: 35px;
	font-style: normal;
	font-weight: 700;
	line-height: 120%; /* 42px */
}

.totem-result__brinde p {
	color: #494949;
	font-size: 28px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%; /* 33.6px */
}

.totem-result__brinde-icon {
    font-size: 20px;
}

.totem-result__mensagem {
    font-size: 40px;
    color: rgba(255,255,255,1);
    line-height: 1.2;
    margin: 0;
}

.texto-nao-premiado {
	text-transform:none;
}

.totem-result__btn {
	border-radius: 73.246px!important;
	border: 1.592px solid #D5D5D5!important;
	background: #FFF!important;
    padding: 24px 64px!important;
	color: #0A111A!important;
	text-align: center!important;
	font-size: 38.216px!important;
	font-style: normal!important;
	font-weight: 600!important;
	line-height: 120%!important; /* 45.859px */
	text-transform: uppercase!important;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.totem-result__btn:active {
    background: #a8553c;
    transform: scale(0.98);
}

.texto-brinde {
	font-family: "DM Sans"!important;
}

/* ── TELA FINAL ───────────────────────────────────────────── */

.totem-screen--final {
    background: #0d1520;
}

.totem-final__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	width: 100%;
	height: 100%;
}

.totem-final__bg::after {
    display: none;
}

.totem-final__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
}

.totem-final__quote {
    max-width: 420px;
    margin-left: auto;
}

.totem-final__quote-text {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 20px;
}

.totem-final__cta-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.totem-final__footer {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.totem-final__url {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.totem-final__logo {
    width: 60px;
    height: auto;
}

.totem-final__countdown {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 3;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
}
